10 #define DS_TRANSPARENTALPHA 0x4
11 #define DS_TRANSPARENTCLR 0x8
12 #define DS_TRUESIZE 0x20
14 typedef struct GDI_DRAW_STREAM_TAG
16 DWORD signature
; // must be 0x44727753;//"Swrd"
17 DWORD reserved
; // must be 0
18 HDC hDC
; // handle to the device object of windiw to draw.
19 RECT rcDest
; // desination rect of dc to draw.
20 DWORD unknown1
; // must be 1.
22 DWORD unknown2
; // must be 9.
24 RECT rcSrc
; // source rect of bitmap to draw.
25 DWORD drawOption
; // DS_ flags
26 DWORD leftSizingMargin
;
27 DWORD rightSizingMargin
;
28 DWORD topSizingMargin
;
29 DWORD bottomSizingMargin
;
30 DWORD crTransparent
; // transparent color.
31 } GDI_DRAW_STREAM
, *PGDI_DRAW_STREAM
;
33 BOOL WINAPI
GdiDrawStream(HDC dc
, ULONG l
, PGDI_DRAW_STREAM pDS
);
36 GetTextExtentExPointWPri(
47 _In_z_ LPCWSTR lpFileName
,
48 _Inout_ DWORD
*pdwBufSize
,
49 _Out_writes_to_opt_(*pdwBufSize
, 1) PVOID lpBuffer
,