Author: jimtabor
Date: Fri Jan 4 05:26:09 2008
New Revision: 31588
URL:
http://svn.reactos.org/svn/reactos?rev=31588&view=rev
Log:
Add graphics device structure.
Modified:
trunk/reactos/subsystems/win32/win32k/include/dc.h
Modified: trunk/reactos/subsystems/win32/win32k/include/dc.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/dc.h (original)
+++ trunk/reactos/subsystems/win32/win32k/include/dc.h Fri Jan 4 05:26:09 2008
@@ -30,7 +30,16 @@
#define PDEV_DRIVER_PUNTED_CALL 0x00040000 // Driver calls back to GDI engine
#define PDEV_CLONE_DEVICE 0x00080000
-typedef struct _GDIPOINTER /* should stay private to ENG */
+// Graphics Device structure.
+typedef struct _GRAPHICS_DEVICE
+{
+ CHAR szNtDeviceName[CCHDEVICENAME]; // Yes char AscII
+ CHAR szWinDeviceName[CCHDEVICENAME]; // <- chk GetMonitorInfoW
MxIxEX.szDevice
+ struct _GRAPHICS_DEVICE * pNextGraphicsDevice;
+ DWORD StateFlags; // See DISPLAY_DEVICE_*
+} GRAPHICS_DEVICE, *PGRAPHICS_DEVICE;
+
+typedef struct _GDIPOINTER /* should stay private to ENG? No, part of GDIDEVICE aka HDEV
aka PDEV. */
{
/* private GDI pointer handling information, required for software emulation */
BOOL Enabled;
@@ -76,7 +85,7 @@
HSURF pSurface; // SURFACE for this device.
HANDLE hSpooler; // Handle to spooler, if spooler dev driver.
ULONG DisplayNumber;
- PVOID pGraphicsDev; // PGRAPHICS_DEVICE see VideoFileObject
+ PVOID pGraphicsDev; // PGRAPHICS_DEVICE
DEVMODEW DMW;
PVOID pdmwDev; // Ptr->DEVMODEW.dmSize + dmDriverExtra == alloc
size.