Share via


DrvEnableSurface (Compact 2013)

3/26/2014

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

See Also

Reference

Display Driver Functions
DrvDisableSurface
DrvEnablePDEV