Difference between revisions of "Techwiki:Win32k/SURFACE"

From ReactOS Wiki
Jump to: navigation, search
Line 29: Line 29:
 
     HDC        hdc;          // 0x060 verified
 
     HDC        hdc;          // 0x060 verified
 
     ULONG      cRef;        // 0x064
 
     ULONG      cRef;        // 0x064
     HPALETTE  hpalHint;    // 0x068 directly after SelectPalettem this is hPalette
+
     HPALETTE  hpalHint;    // 0x068 directly after SelectPalette this is hPalette
 
     UINT      unk_06c;      // 0x06c
 
     UINT      unk_06c;      // 0x06c
 
     UINT      unk_070;      // 0x070
 
     UINT      unk_070;      // 0x070

Revision as of 23:57, 14 May 2008

typedef struct _SURFOBJ
{
    DHSURF  dhsurf;          // 0x000 
    HSURF  hsurf;            // 0x004 
    DHPDEV  dhpdev;          // 0x008 
    HDEV  hdev;              // 0x00c  == (PPDEVOBJ)  DCOBJ::ppdev
    SIZEL  sizlBitmap;       // 0x010 
    ULONG  cjBits;           // 0x018 
    PVOID  pvBits;           // 0x01c 
    PVOID  pvScan0;          // 0x020 
    LONG  lDelta;            // 0x024 
    ULONG  iUniq;            // 0x028 
    ULONG  iBitmapFormat;    // 0x02c 
    USHORT  iType;           // 0x030 
    USHORT  fjBitmap;        // 0x032 
  // size                       0x034
} SURFOBJ, *PSURFOBJ;
typedef struct _SURFACE
{                            // Win XP
    BASEOBJECT BaseObject;   // 0x000
    SURFOBJ    SurfObject;   // 0x010
    XDCOBJ *   pdcoAA;       // 0x044
    FLONG      flags;        // 0x048
    PPALETTE   ppal;         // 0x04c verified, palette with kernel handle, index 13
    UINT       unk_050;      // 0x050
    UINT       unk_054;      // 0x054
    SIZEL      sizlDim;      // 0x058
    HDC        hdc;          // 0x060 verified
    ULONG      cRef;         // 0x064
    HPALETTE   hpalHint;     // 0x068 directly after SelectPalette this is hPalette
    UINT       unk_06c;      // 0x06c
    UINT       unk_070;      // 0x070
    UINT       unk_074;      // 0x074
    UINT       unk_078;      // 0x078
    UINT       unk_07c;      // 0x07c
 // ... ?
} SURFACE, *PSURFACE;