37 #ifndef WIN32_LEAN_AND_MEAN 38 #define WIN32_LEAN_AND_MEAN 56 #if _WIN32_WINNT < 0x0501 58 #define _WIN32_WINNT 0x0501 62 #define DIRECTINPUT_VERSION 0x0800 71 #ifndef WM_MOUSEHWHEEL 72 #define WM_MOUSEHWHEEL 0x020E 74 #ifndef WM_DWMCOMPOSITIONCHANGED 75 #define WM_DWMCOMPOSITIONCHANGED 0x031E 77 #ifndef WM_COPYGLOBALDATA 78 #define WM_COPYGLOBALDATA 0x0049 81 #define WM_UNICHAR 0x0109 83 #ifndef UNICODE_NOCHAR 84 #define UNICODE_NOCHAR 0xFFFF 87 #define WM_DPICHANGED 0x02E0 89 #ifndef GET_XBUTTON_WPARAM 90 #define GET_XBUTTON_WPARAM(w) (HIWORD(w)) 92 #ifndef EDS_ROTATEDMODE 93 #define EDS_ROTATEDMODE 0x00000004 95 #ifndef DISPLAY_DEVICE_ACTIVE 96 #define DISPLAY_DEVICE_ACTIVE 0x00000001 98 #ifndef _WIN32_WINNT_WINBLUE 99 #define _WIN32_WINNT_WINBLUE 0x0602 101 #ifndef WM_GETDPISCALEDSIZE 102 #define WM_GETDPISCALEDSIZE 0x02e4 104 #ifndef USER_DEFAULT_SCREEN_DPI 105 #define USER_DEFAULT_SCREEN_DPI 96 115 #define MSGFLT_ALLOW 1 120 #define DWM_BB_ENABLE 0x00000001 121 #define DWM_BB_BLURREGION 0x00000002 133 #ifndef DPI_ENUMS_DECLARED 149 #ifndef DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 150 #define DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE_V2 ((HANDLE) -4) 154 #define IsWindowsXPOrGreater() \ 155 _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WINXP), \ 156 LOBYTE(_WIN32_WINNT_WINXP), 0) 157 #define IsWindowsVistaOrGreater() \ 158 _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_VISTA), \ 159 LOBYTE(_WIN32_WINNT_VISTA), 0) 160 #define IsWindows7OrGreater() \ 161 _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN7), \ 162 LOBYTE(_WIN32_WINNT_WIN7), 0) 163 #define IsWindows8OrGreater() \ 164 _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WIN8), \ 165 LOBYTE(_WIN32_WINNT_WIN8), 0) 166 #define IsWindows8Point1OrGreater() \ 167 _glfwIsWindowsVersionOrGreaterWin32(HIBYTE(_WIN32_WINNT_WINBLUE), \ 168 LOBYTE(_WIN32_WINNT_WINBLUE), 0) 170 #define _glfwIsWindows10AnniversaryUpdateOrGreaterWin32() \ 171 _glfwIsWindows10BuildOrGreaterWin32(14393) 172 #define _glfwIsWindows10CreatorsUpdateOrGreaterWin32() \ 173 _glfwIsWindows10BuildOrGreaterWin32(15063) 176 #ifndef XINPUT_CAPS_WIRELESS 177 #define XINPUT_CAPS_WIRELESS 0x0002 179 #ifndef XINPUT_DEVSUBTYPE_WHEEL 180 #define XINPUT_DEVSUBTYPE_WHEEL 0x02 182 #ifndef XINPUT_DEVSUBTYPE_ARCADE_STICK 183 #define XINPUT_DEVSUBTYPE_ARCADE_STICK 0x03 185 #ifndef XINPUT_DEVSUBTYPE_FLIGHT_STICK 186 #define XINPUT_DEVSUBTYPE_FLIGHT_STICK 0x04 188 #ifndef XINPUT_DEVSUBTYPE_DANCE_PAD 189 #define XINPUT_DEVSUBTYPE_DANCE_PAD 0x05 191 #ifndef XINPUT_DEVSUBTYPE_GUITAR 192 #define XINPUT_DEVSUBTYPE_GUITAR 0x06 194 #ifndef XINPUT_DEVSUBTYPE_DRUM_KIT 195 #define XINPUT_DEVSUBTYPE_DRUM_KIT 0x08 197 #ifndef XINPUT_DEVSUBTYPE_ARCADE_PAD 198 #define XINPUT_DEVSUBTYPE_ARCADE_PAD 0x13 200 #ifndef XUSER_MAX_COUNT 201 #define XUSER_MAX_COUNT 4 205 #ifndef DIDFT_OPTIONAL 206 #define DIDFT_OPTIONAL 0x80000000 211 #define timeGetTime _glfw.win32.winmm.GetTime 216 #define XInputGetCapabilities _glfw.win32.xinput.GetCapabilities 217 #define XInputGetState _glfw.win32.xinput.GetState 221 #define DirectInput8Create _glfw.win32.dinput8.Create 230 #define SetProcessDPIAware _glfw.win32.user32.SetProcessDPIAware_ 231 #define ChangeWindowMessageFilterEx _glfw.win32.user32.ChangeWindowMessageFilterEx_ 232 #define EnableNonClientDpiScaling _glfw.win32.user32.EnableNonClientDpiScaling_ 233 #define SetProcessDpiAwarenessContext _glfw.win32.user32.SetProcessDpiAwarenessContext_ 234 #define GetDpiForWindow _glfw.win32.user32.GetDpiForWindow_ 235 #define AdjustWindowRectExForDpi _glfw.win32.user32.AdjustWindowRectExForDpi_ 241 #define DwmIsCompositionEnabled _glfw.win32.dwmapi.IsCompositionEnabled 242 #define DwmFlush _glfw.win32.dwmapi.Flush 243 #define DwmEnableBlurBehindWindow _glfw.win32.dwmapi.EnableBlurBehindWindow 248 #define SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness_ 249 #define GetDpiForMonitor _glfw.win32.shcore.GetDpiForMonitor_ 253 #define RtlVerifyVersionInfo _glfw.win32.ntdll.RtlVerifyVersionInfo_ 274 #if !defined(_GLFW_WNDCLASSNAME) 275 #define _GLFW_WNDCLASSNAME L"GLFW30" 278 #define _glfw_dlopen(name) LoadLibraryA(name) 279 #define _glfw_dlclose(handle) FreeLibrary((HMODULE) handle) 280 #define _glfw_dlsym(handle, name) GetProcAddress((HMODULE) handle, name) 282 #define _GLFW_EGL_NATIVE_WINDOW ((EGLNativeWindowType) window->win32.handle) 283 #define _GLFW_EGL_NATIVE_DISPLAY EGL_DEFAULT_DISPLAY 285 #define _GLFW_PLATFORM_WINDOW_STATE _GLFWwindowWin32 win32 286 #define _GLFW_PLATFORM_LIBRARY_WINDOW_STATE _GLFWlibraryWin32 win32 287 #define _GLFW_PLATFORM_LIBRARY_TIMER_STATE _GLFWtimerWin32 win32 288 #define _GLFW_PLATFORM_MONITOR_STATE _GLFWmonitorWin32 win32 289 #define _GLFW_PLATFORM_CURSOR_STATE _GLFWcursorWin32 win32 290 #define _GLFW_PLATFORM_TLS_STATE _GLFWtlsWin32 win32 291 #define _GLFW_PLATFORM_MUTEX_STATE _GLFWmutexWin32 win32 324 short int keycodes[512];
388 WCHAR adapterName[32];
389 WCHAR displayName[32];
390 char publicAdapterName[32];
391 char publicDisplayName[32];
PFN_AdjustWindowRectExForDpi AdjustWindowRectExForDpi_
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
PFN_DirectInput8Create Create
PFN_GetDpiForWindow GetDpiForWindow_
GLuint64 GLenum void * handle
PFN_XInputGetState GetState
_GLFWwindow * disabledCursorWindow
PFN_SetProcessDPIAware SetProcessDPIAware_
BOOL fTransitionOnMaximized
PFN_SetProcessDpiAwareness SetProcessDpiAwareness_
VkWin32SurfaceCreateFlagsKHR flags
PFN_GetDpiForMonitor GetDpiForMonitor_
unsigned __int64 uint64_t
PFN_ChangeWindowMessageFilterEx ChangeWindowMessageFilterEx_
PFN_DwmEnableBlurBehindWindow EnableBlurBehindWindow
PFN_SetProcessDpiAwarenessContext SetProcessDpiAwarenessContext_
PFN_EnableNonClientDpiScaling EnableNonClientDpiScaling_
PFN_RtlVerifyVersionInfo RtlVerifyVersionInfo_
HDEVNOTIFY deviceNotificationHandle
GLsizei GLsizei GLchar * source
DWORD foregroundLockTimeout
PFN_DwmIsCompositionEnabled IsCompositionEnabled
PFN_XInputGetCapabilities GetCapabilities