physicalmonitorenumerationapi.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #include <winapifamily.h>
  6. #ifndef PhysicalMonitorEnumerationAPI_h
  7. #define PhysicalMonitorEnumerationAPI_h
  8. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_DESKTOP)
  9. #include <d3d9.h>
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. #define PHYSICAL_MONITOR_DESCRIPTION_SIZE 128
  14. typedef WINBOOL _BOOL;
  15. #include <pshpack1.h>
  16. typedef struct _PHYSICAL_MONITOR {
  17. HANDLE hPhysicalMonitor;
  18. WCHAR szPhysicalMonitorDescription[PHYSICAL_MONITOR_DESCRIPTION_SIZE];
  19. } PHYSICAL_MONITOR,*LPPHYSICAL_MONITOR;
  20. #include <poppack.h>
  21. _BOOL WINAPI DestroyPhysicalMonitor (HANDLE hMonitor);
  22. _BOOL WINAPI DestroyPhysicalMonitors (DWORD dwPhysicalMonitorArraySize, LPPHYSICAL_MONITOR pPhysicalMonitorArray);
  23. _BOOL WINAPI GetNumberOfPhysicalMonitorsFromHMONITOR (HMONITOR hMonitor, LPDWORD pdwNumberOfPhysicalMonitors);
  24. HRESULT WINAPI GetNumberOfPhysicalMonitorsFromIDirect3DDevice9 (IDirect3DDevice9 *pDirect3DDevice9, LPDWORD pdwNumberOfPhysicalMonitors);
  25. _BOOL WINAPI GetPhysicalMonitorsFromHMONITOR (HMONITOR hMonitor, DWORD dwPhysicalMonitorArraySize, LPPHYSICAL_MONITOR pPhysicalMonitorArray);
  26. HRESULT WINAPI GetPhysicalMonitorsFromIDirect3DDevice9 (IDirect3DDevice9 *pDirect3DDevice9, DWORD dwPhysicalMonitorArraySize, LPPHYSICAL_MONITOR pPhysicalMonitorArray);
  27. #ifdef __cplusplus
  28. }
  29. #endif
  30. #endif
  31. #endif