HBITMAP EngCreateDeviceBitmap(
IN DHSURF dhsurf, | |
IN SIZEL sizl, | |
IN ULONG iFormatCompat | |
); |
EngCreateDeviceBitmap requests GDI to create a handle for a device bitmap.
The return value is a handle that identifies the bitmap if the function is successful. Otherwise, it is zero, and an error code is logged.
The storage space for the bitmap can optionally be provided by the driver. The surface should be associated by using EngAssociateSurface. The bitmap should be deleted by calling EngDeleteSurface when it is no longer needed.