The DrvCreateDeviceBitmap function creates and manages bitmaps.
HBITMAP
DrvCreateDeviceBitmap(
IN DHPDEV dhpdev,
IN SIZEL sizl,
IN ULONG iFormat
);
| Value | Meaning |
|---|---|
| BMF_8BPP | 8 bits per pixel. |
| BMF_16BPP | 16 bits per pixel. |
| BMF_24BPP | 24 bits per pixel. |
| BMF_32BPP | 32 bits per pixel. |
The return value is a handle that identifies the created bitmap if the function is successful. If the driver chooses to let GDI create and manage the bitmap, the return value is zero. If an error occurs, the return value is 0xFFFFFFFF, and GDI logs an error code.
Declared in winddi.h. Include winddi.h.
If the driver creates the bitmap, it can store it anywhere and in any format. It is assumed that the driver will take into account the specifications of the parameters and provide a bitmap with at least as many bits per pixel as requested.
The contents of the created bitmap are undefined.
This function is optional. If this function is implemented, however, DrvDeleteDeviceBitmap must also be implemented.