Skip to content

Latest commit

 

History

History
105 lines (70 loc) · 3.54 KB

nf-winddi-drvenabledirectdraw.md

File metadata and controls

105 lines (70 loc) · 3.54 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:winddi.DrvEnableDirectDraw
DrvEnableDirectDraw function (winddi.h)
The DrvEnableDirectDraw function enables hardware for DirectDraw use.
DrvEnableDirectDraw
DrvEnableDirectDraw function [Display Devices]
ddfncs_259dc59e-2e2c-4cdb-9d79-08e42fd5bc91.xml
display.drvenabledirectdraw
winddi/DrvEnableDirectDraw
display\drvenabledirectdraw.htm
display
eb7e8775-d0ff-42af-8266-5171902eac22
12/05/2018
DrvEnableDirectDraw, DrvEnableDirectDraw function [Display Devices], ddfncs_259dc59e-2e2c-4cdb-9d79-08e42fd5bc91.xml, display.drvenabledirectdraw, winddi/DrvEnableDirectDraw
winddi.h
Winddi.h
Desktop
Windows
19H1
DrvEnableDirectDraw
winddi/DrvEnableDirectDraw
c++
APIRef
kbSyntax
HeaderDef
winddi.h
DrvEnableDirectDraw

DrvEnableDirectDraw function

-description

The DrvEnableDirectDraw function enables hardware for DirectDraw use.

-parameters

-param dhpdev

Handle to the PDEV returned by the driver's DrvEnablePDEV routine.

-param pCallBacks

Points to the DD_CALLBACKS structure to be initialized by the driver.

-param pSurfaceCallBacks

Points to the DD_SURFACECALLBACKS structure to be initialized by the driver.

-param pPaletteCallBacks

Points to the DD_PALETTECALLBACKS structure to be initialized by the driver.

-returns

DrvEnableDirectDraw returns TRUE if it succeeds; otherwise, it returns FALSE.

-remarks

GDI calls the driver's DrvEnableDirectDraw function to obtain pointers to the DirectDraw callbacks that the driver supports. The driver should set the function pointer members of DD_CALLBACKS, DD_SURFACECALLBACKS, and DD_PALETTECALLBACKS to point to those functions that it implements. A driver should also set the corresponding bitfields in the dwFlags members of these structures for all supported callbacks.

A driver's DrvEnableDirectDraw implementation can also dedicate hardware resources such as display memory for use by DirectDraw only.

-see-also

DD_CALLBACKS

DD_PALETTECALLBACKS

DD_SURFACECALLBACKS

DrvDisableDirectDraw

DrvEnablePDEV

DrvGetDirectDrawInfo