22 UINT ConvertedInfoSize = 0, lbStyle;
47 if (dwStyleCount || lpStyle)
54 lbStyle = lplb->lbStyle;
61 if (!pConvertedInfo)
return 0;
71 if (lpPackedDIB ==
NULL)
return 0;
105 RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo);
119 HBRUSH hBrush =
NULL;
121 UINT ConvertedInfoSize;
124 if (lpPackedDIB ==
NULL)
128 &ConvertedInfoSize,
TRUE);
132 ConvertedInfoSize,
FALSE,
FALSE, lpPackedDIB);
134 RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo);
150 HBRUSH hBrush =
NULL;
152 UINT ConvertedInfoSize;
154 if (lpPackedDIB ==
NULL)
158 &ConvertedInfoSize,
TRUE);
164 RtlFreeHeap(RtlGetProcessHeap(), 0, pConvertedInfo);
211 switch (LogBrush->lbStyle)
302 return EMFDRV_SetBrushOrg(
hdc, nXOrg, nYOrg);
339 return NtGdiSetBrushOrg(
hdc, nXOrg, nYOrg, lppt);
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
static const WCHAR dwWidth[]
#define ERROR_INVALID_PARAMETER
#define ERROR_INVALID_HANDLE
FORCEINLINE PVOID GdiAllocBatchCommand(HDC hdc, USHORT Cmd)
LPBITMAPINFO WINAPI ConvertBitmapInfo(CONST BITMAPINFO *BitmapInfo, UINT ColorSpec, UINT *BitmapInfoSize, BOOL FollowedByData)
PLDC FASTCALL GdiGetLDC(HDC hDC)
#define GDI_OBJECT_TYPE_DC
#define GDI_OBJECT_TYPE_BRUSH
#define GDI_HANDLE_GET_TYPE(h)
#define GDI_OBJECT_TYPE_METADC
#define GDI_HANDLE_IS_STOCKOBJ(h)
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiClearBrushAttributes(_In_ HBRUSH hbm, _In_ DWORD dwFlags)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiCreateDIBBrush(_In_reads_bytes_(cj) PVOID pv, _In_ FLONG fl, _In_ UINT cj, _In_ BOOL b8X8, _In_ BOOL bPen, _In_ PVOID pClient)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiUnrealizeObject(_In_ HANDLE h)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiGetStockObject(_In_ INT iObject)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiCreateHatchBrushInternal(_In_ ULONG ulStyle, _In_ COLORREF clrr, _In_ BOOL bPen)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiCreateSolidBrush(_In_ COLORREF cr, _In_opt_ HBRUSH hbr)
__kernel_entry W32KAPI HPEN APIENTRY NtGdiExtCreatePen(_In_ ULONG flPenStyle, _In_ ULONG ulWidth, _In_ ULONG iBrushStyle, _In_ ULONG ulColor, _In_ ULONG_PTR lClientHatch, _In_ ULONG_PTR lHatch, _In_ ULONG cstyle, _In_reads_opt_(cstyle) PULONG pulStyle, _In_ ULONG cjDIB, _In_ BOOL bOldStylePen, _In_opt_ HBRUSH hbrush)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiSetBrushAttributes(_In_ HBRUSH hbm, _In_ DWORD dwFlags)
__kernel_entry W32KAPI HBRUSH APIENTRY NtGdiCreatePatternBrushInternal(_In_ HBITMAP hbm, _In_ BOOL bPen, _In_ BOOL b8X8)
BOOL WINAPI GetBrushOrgEx(HDC hdc, LPPOINT pt)
HBRUSH WINAPI SetBrushAttributes(HBRUSH hbm, DWORD dwFlags)
BOOL WINAPI UnrealizeObject(HGDIOBJ hgdiobj)
HBRUSH WINAPI ClearBrushAttributes(HBRUSH hbm, DWORD dwFlags)
HBRUSH WINAPI CreateDIBPatternBrush(HGLOBAL hglbDIBPacked, UINT fuColorSpec)
DWORD WINAPI GetBrushAttributes(HBRUSH hbr)
HPEN APIENTRY ExtCreatePen(DWORD dwPenStyle, DWORD dwWidth, CONST LOGBRUSH *lplb, DWORD dwStyleCount, CONST DWORD *lpStyle)
_In_ PCCERT_CONTEXT _In_ DWORD dwFlags
HBRUSH WINAPI CreateBrushIndirect(_In_ const LOGBRUSH *plb)
BOOL WINAPI SetBrushOrgEx(_In_ HDC, _In_ int, _In_ int, _Out_opt_ LPPOINT)
HBRUSH WINAPI CreateHatchBrush(_In_ int, _In_ COLORREF)
struct tagBITMAPINFO * PBITMAPINFO
HBRUSH WINAPI CreateDIBPatternBrushPt(_In_ const VOID *pvPackedDIB, _In_ UINT uUsage)
HBRUSH WINAPI CreateSolidBrush(_In_ COLORREF)
HBRUSH WINAPI CreatePatternBrush(_In_ HBITMAP)