105 return pentry->
pUser;
108#define FL_INVERT_COLORS 0x01
109#define FL_RED_BLUE 0x02
125 ULONG bmiColors[256];
133 printf(
"CreateBitmap failed %lu\n", cBitsPerPixel);
138 memset(&bmiBuffer, 0,
sizeof(bmiBuffer));
151 if (cBitsPerPixel == 1)
155 bmiBuffer.bmiColors[0] =
RGB(0xFF, 0x00, 0x00);
156 bmiBuffer.bmiColors[1] =
RGB(0x00, 0x00, 0xFF);
160 bmiBuffer.bmiColors[0] = 0xFFFFFF;
161 bmiBuffer.bmiColors[1] = 0;
165 bmiBuffer.bmiColors[0] = 0;
166 bmiBuffer.bmiColors[1] = 0xFFFFFF;
173 if (*phdcDIB ==
NULL)
175 printf(
"CreateCompatibleDC failed %lu\n", cBitsPerPixel);
181 if (*phbmpDIB ==
NULL)
183 printf(
"CreateDIBSection failed. %lu\n", cBitsPerPixel);
199 printf(
"failed to create a palette\n");
212 printf(
"failed to create objects\n");
222 printf(
"failed to create info DC\n");
enum GDILoObjType GDILOOBJTYPE
_In_ HBITMAP _In_ UINT _In_ UINT _Inout_ LPBITMAPINFO pbmi
_Out_opt_ int _Out_opt_ int * cy
union _ENTRY::_EINFO einfo
PVOID GdiSharedHandleTable
PPEB ProcessEnvironmentBlock
BITMAPINFOHEADER bmiHeader
struct _BASEOBJECT * pobj
_In_ WDFCOLLECTION _In_ ULONG Index
HBITMAP WINAPI CreateDIBSection(HDC hDC, CONST BITMAPINFO *BitmapInfo, UINT Usage, VOID **Bits, HANDLE hSection, DWORD dwOffset)
HBITMAP WINAPI CreateBitmap(_In_ INT cx, _In_ INT cy, _In_ UINT cPlanes, _In_ UINT cBitsPerPel, _In_opt_ const VOID *pvBits)
HPALETTE WINAPI CreatePalette(_In_reads_(_Inexpressible_(2 *sizeof(WORD)+plpal->palNumEntries *sizeof(PALETTEENTRY))) const LOGPALETTE *)
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
HDC WINAPI CreateCompatibleDC(_In_opt_ HDC hdc)
struct tagBITMAPINFO * LPBITMAPINFO
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)