6 #define DS_TRANSPARENTALPHA 0x4
7 #define DS_TRANSPARENTCLR 0x8
8 #define DS_TRUESIZE 0x20
10 typedef struct GDI_DRAW_STREAM_TAG
12 DWORD signature
; // must be 0x44727753;//"Swrd"
13 DWORD reserved
; // must be 0
14 HDC hDC
; // handle to the device object of windiw to draw.
15 RECT rcDest
; // desination rect of dc to draw.
16 DWORD unknown1
; // must be 1.
18 DWORD unknown2
; // must be 9.
20 RECT rcSrc
; // source rect of bitmap to draw.
21 DWORD drawOption
; // DS_ flags
22 DWORD leftSizingMargin
;
23 DWORD rightSizingMargin
;
24 DWORD topSizingMargin
;
25 DWORD bottomSizingMargin
;
26 DWORD crTransparent
; // transparent color.
27 } GDI_DRAW_STREAM
, *PGDI_DRAW_STREAM
;
31 GdiDrawStream(HDC dc
, ULONG l
, PGDI_DRAW_STREAM pDS
);