WinApi.h 994 B

1234567891011121314151617181920
  1. //---------------------------------------------------------------------------
  2. #ifndef WinApiH
  3. #define WinApiH
  4. //---------------------------------------------------------------------------
  5. #include <shlobj.h>
  6. //---------------------------------------------------------------------------
  7. typedef BOOL WINAPI (* ChangeWindowMessageFilterExProc)(
  8. HWND hwnd, UINT message, DWORD action, PCHANGEFILTERSTRUCT pChangeFilterStruct);
  9. //---------------------------------------------------------------------------
  10. typedef enum _Monitor_DPI_Type {
  11. MDT_Effective_DPI = 0,
  12. MDT_Angular_DPI = 1,
  13. MDT_Raw_DPI = 2,
  14. MDT_Default = MDT_Effective_DPI
  15. } MONITOR_DPI_TYPE;
  16. //---------------------------------------------------------------------------
  17. typedef HRESULT WINAPI (* GetDpiForMonitorProc)(
  18. HMONITOR hmonitor, MONITOR_DPI_TYPE dpiType, UINT * dpiX, UINT * dpiY);
  19. //---------------------------------------------------------------------------
  20. #endif // WinApiH