mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[WIN32K]
- Simplify monitors code - fix few minor bugs (ie. not updating last error) - Make monitor object more compatible to windows svn path=/trunk/; revision=54197
This commit is contained in:
@@ -4,30 +4,28 @@
|
||||
typedef struct _MONITOR
|
||||
{
|
||||
HEAD head;
|
||||
//
|
||||
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 */
|
||||
};};
|
||||
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 cFullScreen;
|
||||
SHORT cWndStack;
|
||||
HDEV hDev;
|
||||
HDEV hDevReal;
|
||||
// BYTE DockTargets[4][7];
|
||||
// Use LIST_ENTRY
|
||||
struct _MONITOR* Next; //Flink;
|
||||
struct _MONITOR* Prev; //Blink;
|
||||
|
||||
// ReactOS specific fields:
|
||||
UNICODE_STRING DeviceName; /* name of the monitor */
|
||||
PDEVOBJ *GdiDevice; /* pointer to the GDI device to
|
||||
which this monitor is attached */
|
||||
} MONITOR, *PMONITOR;
|
||||
|
||||
NTSTATUS IntAttachMonitor(PDEVOBJ *pGdiDevice, ULONG DisplayNumber);
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user