This section describes the Microsoft DirectDraw interface and architecture, and provides implementation guidelines for DirectDraw driver writers. The guidelines are written for Microsoft Windows 2000 and later. The reader should be familiar with the DirectDraw APIs, and have a firm grasp of the Windows 2000 display driver model.
Driver writers who are creating Microsoft DirectDraw drivers for Microsoft Windows 2000 and later should use the following header files:
ddrawint.h contains the basic types, constants, and structures for DirectDraw drivers.
ddraw.h contains the basic types, constants, and structures used by both applications and drivers.
dvp.h is used when the driver supports the DirectDraw video port extensions (VPE).
dxmini.h is used when the video miniport driver includes support for kernel-mode video transport, the DxApi interface (functions specified by the DXAPI_INTERFACE structure).
ddkmapi.h is used by video capture drivers to access the DxApi function. DirectDraw, in turn, calls upon the DxApi interface.
dmemmgr.h is used when the driver wants to perform its own memory management instead of relying on the DirectDraw runtime.
ddkernel.h is used when the driver includes kernel-mode support.
dx95type.h allows driver writers to easily port existing Windows 98/Me drivers to Windows 2000 and later. This header file maps names that are different on the two platforms.
The ddraw.h header file is shipped with the Windows SDK; all other header files are included with the Windows Driver Kit (WDK). The Windows Driver Development Kit (DDK) also contains sample code for a DirectDraw driver in the p3samp video display directory.
For more information about DirectDraw, see the Windows SDK. DirectDraw driver writers can send questions and comments by email to email@example.com.