次の方法で共有


GPEEnableDriver (Compact 2013)

3/26/2014

This function initializes the callbacks that GDI provides for display drivers. It also fills in the driver entry points for the display driver in the DRVENABLEDATA structure.

Syntax

BOOL APIENTRY GPEEnableDriver(
  ULONG iEngineVersion,
  ULONG cj,
  DRVENABLEDATA* pded,
  PENGCALLBACKS pEngCallbacks
);

Parameters

  • iEngineVersion
    [in] DDI version number that GDI was written for. Set to DDI_DRIVER_VERSION to specify the current version. Drivers should use this manifest constant that is defined in Winddi.h.
  • cj
    [in] Size in bytes of the DRVENABLEDATA structure. If the structure is larger than expected, extra members should not be modified.
  • pded
    [out] Pointer to a DRVENABLE structure.
  • pEngCallbacks
    [in] Structure containing function pointers to the GDI helper functions for display drivers. This is passed from GDI through DrvEnableDriver to GPEEnableDriver. It allows the display driver to obtain information from GDI.

Return Value

TRUE if successful. FALSE if failure.

Requirements

Header

gpe.h

Library

Gpe_lib.lib

See Also

Reference

Display Driver Functions
DRVENABLEDATA