#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 "lib/sysdep/os/win/winit.h"
#include <shlobj.h>
#include "lib/sysdep/os/win/wdll_main.h"
Go to the source code of this file.
| static void DetectWow64 |
( |
| ) |
|
|
static |
| static void EnableLowFragmentationHeap |
( |
| ) |
|
|
static |
| static BOOL CALLBACK FindAppWindowByPid |
( |
HWND |
hWnd, |
|
|
LPARAM |
lParam |
|
) |
| |
|
static |
| static void ForciblyLoadUser32Dll |
( |
| ) |
|
|
static |
| static void FreeCommandLine |
( |
| ) |
|
|
static |
| static void FreeDirectories |
( |
| ) |
|
|
static |
| static void FreeUser32Dll |
( |
| ) |
|
|
static |
| static void GetDirectories |
( |
| ) |
|
|
static |
| static OsPath* GetFolderPath |
( |
int |
csidl | ) |
|
|
static |
| static void ImportWow64Functions |
( |
| ) |
|
|
static |
| static void InitLocks |
( |
| ) |
|
|
static |
| static void ReadCommandLine |
( |
| ) |
|
|
static |
| static void ShutdownLocks |
( |
| ) |
|
|
static |
- Returns
- the Status equivalent of GetLastError(), or ERR::FAIL if there's no equivalent. SetLastError(0) should be called before the Windows function to make sure no stale errors are returned.
Definition at line 125 of file wutil.cpp.
| void* wutil_Allocate |
( |
size_t |
size | ) |
|
- Returns
- handle to the first window owned by the current process, or 0 if none exist (e.g. it hasn't yet created one).
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.
Definition at line 532 of file wutil.cpp.
| const OsPath& wutil_ExecutablePath |
( |
| ) |
|
| void wutil_Free |
( |
void * |
p | ) |
|
| static WUTIL_FUNC |
( |
pIsWow64Process |
, |
|
|
BOOL |
, |
|
|
(HANDLE, PBOOL) |
|
|
) |
| |
|
static |
| static WUTIL_FUNC |
( |
pWow64DisableWow64FsRedirection |
, |
|
|
BOOL |
, |
|
|
(PVOID *) |
|
|
) |
| |
|
static |
| static WUTIL_FUNC |
( |
pWow64RevertWow64FsRedirection |
, |
|
|
BOOL |
, |
|
|
(PVOID) |
|
|
) |
| |
|
static |
| bool wutil_HasCommandLineArgument |
( |
const wchar_t * |
arg | ) |
|
| HMODULE wutil_LibModuleHandle |
( |
| ) |
|
- Returns
- module handle of lib code (that of the main EXE if linked statically, otherwise the DLL). this is necessary for the error dialog.
Definition at line 490 of file wutil.cpp.
| const OsPath& wutil_LocalAppdataPath |
( |
| ) |
|
| const OsPath& wutil_PersonalPath |
( |
| ) |
|
| const OsPath& wutil_RoamingAppdataPath |
( |
| ) |
|
| Status wutil_SetPrivilege |
( |
const wchar_t * |
privilege, |
|
|
bool |
enable |
|
) |
| |
| static Status wutil_Shutdown |
( |
| ) |
|
|
static |
| const OsPath& wutil_SystemPath |
( |
| ) |
|