hdc (HDC) - input
pInfoHd (PBITMAPINFOHEADER) - input
Pointer to either a BITMAPINFOHEADER structure:
cbFix
Or pointer to a BITMAPINFOHEADER2 structure:
cbFix
BCA_UNCOMP
For standard formats with a cBitCount of 1, 4, or 8 (and cPlanes=1), any indexes beyond cclrUsed are not valid. For example, a bit map with 64 colors can use the 8-bitcount format without having to supply the other 192 entries in the color table. For the 24-bitcount standard format, cclrUsed is the number of colors used by the bit map.
BRU_METRIC
BRA_BOTTOMUP
BRH_NOTHALFTONED
If the BRH_PANDA or BRH_SUPERCIRCLE is specified, cSize1 is the x-dimension of the pattern used in pels.
BCE_RGB
flUsage (ULONG) - input
CBM_INIT
Other flags (16 - 31) can be used for special purposes known to be supported by a particular presentation driver.
pBitmap (PBYTE) - input
paInfo (PBITMAPINFO) - input
Pointer to either a BITMAPINFO structure:
cbFix
cbFix
BCA_UNCOMP
For standard formats with a cBitCount of 1, 4, or 8 (and cPlanes=1), any indexes beyond cclrUsed are not valid. For example, a bit map with 64 colors can use the 8-bitcount format without having to supply the other 192 entries in the color table. For the 24-bitcount standard format, cclrUsed is the number of colors used by the bit map.
BRU_METRIC
BRA_BOTTOMUP
BRH_NOTHALFTONED
If the BRH_PANDA or BRH_SUPERCIRCLE is specified, cSize1 is the X-dimension of the pattern used in pels.
BCE_RGB
bBlue
pInstance (PVOID) - input
lFunction (ULONG) - input
rc (HBITMAP) - returns
On completion, the handling routine must return the handle of the bit map (hbm), or 0 if an error occurs.
Possible Errors Detected: Error codes posted by the engine for this function include:
PMERR_DEV_FUNC_NOT_INSTALLED PMERR_HDC_BUSY
PMERR_INSUFFICIENT_MEMORY
PMERR_INV_BITMAP_DIMENSION
PMERR_INV_HDC
PMERR_INV_INFO_TABLE
PMERR_INV_LENGTH_OR_COUNT
PMERR_INV_SCAN_START
PMERR_INV_USAGE_PARM