2004-11-16 17:25:47 +00:00
|
|
|
#ifndef _WIN32K_MONITOR_H
|
|
|
|
#define _WIN32K_MONITOR_H
|
|
|
|
|
|
|
|
struct GDIDEVICE;
|
|
|
|
|
|
|
|
/* monitor object */
|
|
|
|
typedef struct _MONITOR_OBJECT
|
|
|
|
{
|
|
|
|
HANDLE Handle; /* system object handle */
|
|
|
|
FAST_MUTEX Lock; /* R/W lock */
|
|
|
|
|
|
|
|
BOOL IsPrimary; /* wether this is the primary monitor */
|
|
|
|
UNICODE_STRING DeviceName; /* name of the monitor */
|
|
|
|
GDIDEVICE *GdiDevice; /* pointer to the GDI device to
|
|
|
|
which this monitor is attached */
|
|
|
|
struct _MONITOR_OBJECT *Prev, *Next; /* doubly linked list */
|
|
|
|
} MONITOR_OBJECT, *PMONITOR_OBJECT;
|
|
|
|
|
|
|
|
/* functions */
|
|
|
|
NTSTATUS InitMonitorImpl();
|
|
|
|
NTSTATUS CleanupMonitorImpl();
|
|
|
|
|
|
|
|
NTSTATUS IntAttachMonitor(GDIDEVICE *pGdiDevice, ULONG DisplayNumber);
|
|
|
|
NTSTATUS IntDetachMonitor(GDIDEVICE *pGdiDevice);
|
2007-09-18 05:07:49 +00:00
|
|
|
PMONITOR_OBJECT FASTCALL UserGetMonitorObject(IN HMONITOR);
|
2004-11-16 17:25:47 +00:00
|
|
|
|
|
|
|
#endif /* _WIN32K_MONITOR_H */
|
|
|
|
|
|
|
|
/* EOF */
|