1 #pragma once 2 3 /* Monitor object */ 4 typedef struct _MONITOR 5 { 6 HEAD head; 7 struct _MONITOR* pMonitorNext; 8 union 9 { 10 DWORD dwMONFlags; 11 struct 12 { 13 DWORD IsVisible: 1; 14 DWORD IsPalette: 1; 15 DWORD IsPrimary: 1; /* Whether this is the primary monitor */ 16 }; 17 }; 18 RECT rcMonitor; 19 RECT rcWork; 20 HRGN hrgnMonitor; 21 SHORT cFullScreen; 22 SHORT cWndStack; 23 HDEV hDev; 24 } MONITOR, *PMONITOR; 25 26 NTSTATUS NTAPI UserAttachMonitor(IN HDEV hDev); 27 NTSTATUS NTAPI UserDetachMonitor(HDEV hDev); 28 NTSTATUS NTAPI UserUpdateMonitorSize(IN HDEV hDev); 29 PMONITOR NTAPI UserGetMonitorObject(IN HMONITOR); 30 PMONITOR NTAPI UserGetPrimaryMonitor(VOID); 31 PMONITOR NTAPI UserMonitorFromRect(PRECTL,DWORD); 32 PMONITOR FASTCALL UserMonitorFromPoint(POINT,DWORD); 33 34 /* EOF */ 35