summaryrefslogtreecommitdiffstats
path: root/make/stub_includes/win32/WindowsUser.h
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2023-01-31 03:57:48 +0100
committerSven Gothel <[email protected]>2023-01-31 03:57:48 +0100
commitbebb7e9b078f6eaed478143ffbdeeece5ca0e037 (patch)
tree19eb9d743a7aa0ebc1128f314cd3fb535a344c9d /make/stub_includes/win32/WindowsUser.h
parente96aeb6e9acd2b1435f5fad244a1488e74a3a6d6 (diff)
GDIUtil: Add GetMonitor*() variants incl. PixelScale (Part-2, adding missing native header and code files)
Part-1 in commit e96aeb6e9acd2b1435f5fad244a1488e74a3a6d6
Diffstat (limited to 'make/stub_includes/win32/WindowsUser.h')
-rw-r--r--make/stub_includes/win32/WindowsUser.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/make/stub_includes/win32/WindowsUser.h b/make/stub_includes/win32/WindowsUser.h
new file mode 100644
index 000000000..3e4a426c7
--- /dev/null
+++ b/make/stub_includes/win32/WindowsUser.h
@@ -0,0 +1,12 @@
+#include <windows.h>
+#include <stdint.h>
+
+#ifndef WIN_USER_VERSION_X_X
+#define WIN_USER_VERSION_X_X
+
+HMONITOR GetMonitorFromWindow(HWND hwnd);
+HMONITOR GetMonitorFromPoint(int x, int y);
+HMONITOR GetMonitorFromRect(int left, int top, int right, int bottom);
+
+#endif /* WIN_USER_VERSION_X_X */
+