mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-25 09:31:20 +00:00
24 lines
725 B
C
24 lines
725 B
C
|
#pragma once
|
||
|
|
||
|
// Forward declarations for optional Win32 API procedures
|
||
|
// implemented in i_main.cpp
|
||
|
|
||
|
#define WIN32_LEAN_AND_MEAN
|
||
|
#include <windows.h>
|
||
|
#include <shlobj.h>
|
||
|
|
||
|
#include "i_module.h"
|
||
|
|
||
|
extern FModule Kernel32Module;
|
||
|
extern FModule Shell32Module;
|
||
|
extern FModule User32Module;
|
||
|
|
||
|
namespace OptWin32 {
|
||
|
|
||
|
extern TOptProc<Shell32Module, HRESULT(WINAPI*)(HWND, int, HANDLE, DWORD, LPTSTR)> SHGetFolderPathA;
|
||
|
extern TOptProc<Shell32Module, HRESULT(WINAPI*)(REFKNOWNFOLDERID, DWORD, HANDLE, PWSTR *)> SHGetKnownFolderPath;
|
||
|
extern TOptProc<Kernel32Module, DWORD (WINAPI*)(LPCTSTR, LPTSTR, DWORD)> GetLongPathNameA;
|
||
|
extern TOptProc<User32Module, BOOL(WINAPI*)(HMONITOR, LPMONITORINFO)> GetMonitorInfoA;
|
||
|
|
||
|
} // namespace OptWin32
|