reactos/subsystems/win32/win32k/include/monitor.h
Timo Kreuzer 406dfdbc87 [CMAKE]
Sync trunk (rr49606)

svn path=/branches/cmake-bringup/; revision=49607
2010-11-16 13:43:39 +00:00

47 lines
1.2 KiB
C

#pragma once
/* monitor object */
typedef struct _MONITOR
{
HEAD head;
//
FAST_MUTEX Lock; /* R/W lock */
UNICODE_STRING DeviceName; /* name of the monitor */
PDEVOBJ *GdiDevice; /* pointer to the GDI device to
which this monitor is attached */
// This is the structure Windows uses:
// struct _MONITOR* pMonitorNext;
union {
DWORD dwMONFlags;
struct {
DWORD IsVisible:1;
DWORD IsPalette:1;
DWORD IsPrimary:1; /* wether this is the primary monitor */
};};
RECT rcMonitor;
RECT rcWork;
HRGN hrgnMonitor;
SHORT Spare0;
SHORT cWndStack;
HDEV hDev;
HDEV hDevReal;
// BYTE DockTargets[4][7];
// Use LIST_ENTRY
struct _MONITOR* Next; //Flink;
struct _MONITOR* Prev; //Blink;
} MONITOR, *PMONITOR;
/* functions */
INIT_FUNCTION
NTSTATUS
NTAPI
InitMonitorImpl();
NTSTATUS CleanupMonitorImpl();
NTSTATUS IntAttachMonitor(PDEVOBJ *pGdiDevice, ULONG DisplayNumber);
NTSTATUS IntDetachMonitor(PDEVOBJ *pGdiDevice);
PMONITOR FASTCALL UserGetMonitorObject(IN HMONITOR);
PMONITOR FASTCALL IntGetPrimaryMonitor(VOID);
/* EOF */