HSURF DrvEnableSurface(
IN DHPDEV dhpdev | |
); |
DrvEnableSurface sets up a surface to be drawn on and associates it with a given PDEV.
The return value is a handle that identifies the newly created surface. Otherwise, it is zero, and an error code is logged.
Depending on the device and circumstances, the driver can do any of the following to enable the surface:
Any existing GDI bitmap handle is a valid surface handle.
Before defining and returning a surface, a graphics driver must associate the surface with the physical device using EngAssociateSurface. This GDI function allows the driver to specify which graphics output routines are supported for standard-format bitmaps. A call to this function can only be made when no surface exists for the given physical device.
DrvEnableSurface is required for graphics drivers.
DrvDisableSurface, DrvEnablePDEV, EngCreateBitmap, EngCreateDeviceSurface