diff options
Diffstat (limited to 'src/dutil/inc')
-rw-r--r-- | src/dutil/inc/dpiutil.h | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/src/dutil/inc/dpiutil.h b/src/dutil/inc/dpiutil.h index 216d3dc6..b30e2332 100644 --- a/src/dutil/inc/dpiutil.h +++ b/src/dutil/inc/dpiutil.h | |||
@@ -41,23 +41,26 @@ typedef BOOL (APIENTRY* PFN_ADJUSTWINDOWRECTEXFORDPI)( | |||
41 | __in DWORD dwExStyle, | 41 | __in DWORD dwExStyle, |
42 | __in UINT dpi | 42 | __in UINT dpi |
43 | ); | 43 | ); |
44 | typedef HRESULT (APIENTRY *PFN_GETDPIFORMONITOR)( | ||
45 | __in HMONITOR hmonitor, | ||
46 | __in MONITOR_DPI_TYPE dpiType, | ||
47 | __in UINT* dpiX, | ||
48 | __in UINT* dpiY | ||
49 | ); | ||
50 | typedef UINT (APIENTRY *PFN_GETDPIFORWINDOW)( | 44 | typedef UINT (APIENTRY *PFN_GETDPIFORWINDOW)( |
51 | __in HWND hwnd | 45 | __in HWND hwnd |
52 | ); | 46 | ); |
53 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARE)(); | 47 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARE)(); |
54 | typedef HRESULT (APIENTRY* PFN_SETPROCESSDPIAWARENESS)( | ||
55 | __in PROCESS_DPI_AWARENESS value | ||
56 | ); | ||
57 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARENESSCONTEXT)( | 48 | typedef BOOL (APIENTRY* PFN_SETPROCESSDPIAWARENESSCONTEXT)( |
58 | __in DPI_AWARENESS_CONTEXT value | 49 | __in DPI_AWARENESS_CONTEXT value |
59 | ); | 50 | ); |
60 | 51 | ||
52 | #ifdef DPI_ENUMS_DECLARED | ||
53 | typedef HRESULT(APIENTRY* PFN_GETDPIFORMONITOR)( | ||
54 | __in HMONITOR hmonitor, | ||
55 | __in MONITOR_DPI_TYPE dpiType, | ||
56 | __in UINT* dpiX, | ||
57 | __in UINT* dpiY | ||
58 | ); | ||
59 | typedef HRESULT(APIENTRY* PFN_SETPROCESSDPIAWARENESS)( | ||
60 | __in PROCESS_DPI_AWARENESS value | ||
61 | ); | ||
62 | #endif | ||
63 | |||
61 | void DAPI DpiuInitialize(); | 64 | void DAPI DpiuInitialize(); |
62 | void DAPI DpiuUninitialize(); | 65 | void DAPI DpiuUninitialize(); |
63 | 66 | ||