Table of contents
GDI
TOC
Collapse the table of content
Expand the table of content

DirectDraw and Direct3D Callback Support Using DdGetDriverInfo

Last Updated: 2/14/2017

The display driver can implement the DdGetDriverInfo function to indicate various DirectDraw and Direct3D callback support. Callback support is contingent on the following GUIDs that the driver receives in the guidInfo member of the DD_GETDRIVERINFODATA structure, to which the lpGetDriverInfo parameter points. The driver returns a pointer to a structure in the lpvData member that specifies DirectDraw or Direct3D callback support.

  • If the driver receives the GUID_MiscellaneousCallbacks GUID, it returns a pointer to the DD_MISCELLANEOUSCALLBACKS structure. If it supports a DdGetAvailDriverMemory callback function, the driver fills the DdGetAvailDriverMemory member of DD_MISCELLANEOUSCALLBACKS to specify DdGetAvailDriverMemory.

  • If the driver receives the GUID_MotionCompCallbacks GUID, it returns a pointer to the DD_MOTIONCOMPCALLBACKS structure to indicate its support of motion compensation callbacks. For more information, see Compressed Video Decoding.

  • If the driver receives the GUID_NTCallbacks GUID, it returns a pointer to the DD_NTCALLBACKS structure. The driver fills members of DD_NTCALLBACKS to indicate that it supports the following callback functions.

    Callback FunctionDescription

    DdFlipToGDISurface

    Notifies the driver when DirectDraw is flipping to or from a GDI surface.

    DdFreeDriverMemory

    Frees offscreen or nonlocal display memory to satisfy a new allocation request.

    DdSetExclusiveMode

    Notifies the driver when a DirectDraw application is switching to or from exclusive mode.

Send comments about this topic to Microsoft

© 2017 Microsoft