Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"
#include "lib/sysdep/os/win/wutil.h"
#include <stdio.h>
#include <stdlib.h>
#include "lib/file/file.h"
#include "lib/posix/posix.h"
#include "lib/sysdep/sysdep.h"
#include "lib/sysdep/os/win/win.h"
#include "lib/sysdep/os/win/wdbg.h"
#include <shlobj.h>
#include <SDL_loadso.h>
#include <SDL_syswm.h>
Functions | |
void * | wutil_Allocate (size_t size) |
void | wutil_Free (void *p) |
void | wutil_Lock (WinLockId id) |
void | wutil_Unlock (WinLockId id) |
bool | wutil_IsLocked (WinLockId id) |
static void | InitLocks () |
static void | ShutdownLocks () |
Status | StatusFromWin () |
static OsPath | GetFolderPath (int csidl) |
OsPath | wutil_LocalAppdataPath () |
OsPath | wutil_RoamingAppdataPath () |
OsPath | wutil_PersonalPath () |
Status | wutil_SetPrivilege (const wchar_t *privilege, bool enable) |
HMODULE | wutil_LibModuleHandle () |
void | wutil_SetAppWindow (SDL_Window *window) |
void * | wutil_GetAppHDC () |
void | wutil_SetAppWindow (void *hwnd) |
HWND | wutil_AppWindow () |
void | wutil_EnableHiDPIOnWindows () |
Status | wutil_Init () |
Status | wutil_Shutdown () |
Variables | |
static CRITICAL_SECTION | cs [NUM_CS] |
static bool | cs_valid |
static HWND | hAppWindow |
|
static |
|
static |
|
static |
Status StatusFromWin | ( | ) |
void * wutil_Allocate | ( | size_t | size | ) |
HWND wutil_AppWindow | ( | ) |
enumerates all top-level windows and stops if PID matches. once this function returns a non-NULL handle, it will always return that cached value.
void wutil_EnableHiDPIOnWindows | ( | ) |
void wutil_Free | ( | void * | p | ) |
void * wutil_GetAppHDC | ( | ) |
Status wutil_Init | ( | ) |
bool wutil_IsLocked | ( | WinLockId | id | ) |
HMODULE wutil_LibModuleHandle | ( | ) |
OsPath wutil_LocalAppdataPath | ( | ) |
void wutil_Lock | ( | WinLockId | id | ) |
OsPath wutil_PersonalPath | ( | ) |
OsPath wutil_RoamingAppdataPath | ( | ) |
void wutil_SetAppWindow | ( | SDL_Window * | window | ) |
void wutil_SetAppWindow | ( | void * | hwnd | ) |
Status wutil_SetPrivilege | ( | const wchar_t * | privilege, |
bool | enable | ||
) |
Status wutil_Shutdown | ( | ) |
void wutil_Unlock | ( | WinLockId | id | ) |
|
static |
|
static |
|
static |