Поделиться через


DrvEnableSurface (Windows Embedded CE 6.0)

1/6/2010

This function sets up a surface to draw on and associates it with a specified PDEV.

Syntax

HSURF DrvEnableSurface(
  DHPDEV dhpdev 
);

Parameters

  • dhpdev
    [in] Handle to a PDEV structure. This value is the return value of the DrvEnablePDEV function. The PDEV describes the physical device to create a surface for.

Return Value

Handle that identifies the newly created surface indicates success. Zero indicates failure.

Remarks

This function is required for graphics drivers.

Depending on the device and circumstances, if the driver manages its own surface, the driver can call the EngCreateDeviceSurface function to get a handle to the surface.

Any existing GDI bitmap handle is a valid surface handle.

Requirements

Header winddi.h
Library Ddi_ati_lib.lib, Ddi_flat_lib.lib, Ddi_gx_lib.lib, Ddi_mq200_lib.lib, Ddi_nop_lib.lib, Ddi_rflat_lib.lib, Ddi_rgx_lib.lib, Ddi_tvia5_lib.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Display Driver Functions
DrvDisableSurface
DrvEnablePDEV

Other Resources

Display Drivers