HSURF EngCreateDeviceSurface(
DHSURF dhsurf, | |
SIZEL sizl, | |
ULONG iFormatCompat | |
); |
EngCreateDeviceSurface creates and returns a handle for a device surface that the driver will manage.
The return value is a handle that identifies the surface if the function is successful. Otherwise, it is zero, and an error code is logged.
The storage space for the surface can optionally be provided by the driver. The surface should be associated by using EngAssociateSurface. The bitmap should be deleted when it is no longer needed by using EngDeleteSurface.