1
0
mirror of https://github.com/valinet/ExplorerPatcher.git synced 2024-11-23 23:21:08 +01:00

Added some imports

This commit is contained in:
Valentin Radu 2021-10-10 06:10:28 +03:00
parent 45eec48aef
commit 886ebca6b2

View File

@ -75,6 +75,10 @@ static HWND(WINAPI* CreateWindowInBand)(
DWORD band
);
BOOL(WINAPI* GetWindowBand)(HWND hWnd, PDWORD pdwBand);
BOOL(WINAPI* SetWindowBand)(HWND hWnd, HWND hwndInsertAfter, DWORD dwBand);
static void(*SetPreferredAppMode)(INT64 bAllowDark);
static void(*AllowDarkModeForWindow)(HWND hWnd, INT64 bAllowDark);
@ -1499,6 +1503,8 @@ __declspec(dllexport) DWORD WINAPI main(
HANDLE hUser32 = LoadLibraryW(L"user32.dll");
CreateWindowInBand = GetProcAddress(hUser32, "CreateWindowInBand");
GetWindowBand = GetProcAddress(hUser32, "GetWindowBand");
SetWindowBand = GetProcAddress(hUser32, "SetWindowBand");
printf("Setup user32 functions done\n");