reactos/reactos/subsystems/win32/win32k/include/monitor.h

30 lines
873 B
C
Raw Normal View History

#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);
PMONITOR_OBJECT FASTCALL UserGetMonitorObject(IN HMONITOR);
#endif /* _WIN32K_MONITOR_H */
/* EOF */