Display Drivers (Compact 2013)


Display drivers connect the Windows Embedded Compact operating system to video hardware. These drivers are loaded and called directly by the graphics, windowing, and event subsystem (GWES). Display drivers export functions to the GWES through the display device driver interface (DDI).

To add display drivers to your OS, see Display Driver Catalog Items and Sysgen Variables.

For reference information, see Display Driver Reference.

Sample application code for a VGA display driver is available at the following location. For the sample display driver, software acceleration is provided through emulation libraries, and hardware acceleration is limited to two-dimensional graphics operations.


Sources file location


VGA linear (flat) framebuffer driver



Sample code for the sample DirectDraw display drivers is in the locations listed below.

  • DDrawi.h
    This file contains internal DirectDraw data structures that are shared with drivers.
  • DDGPE.lib
    Contains the code that a GPE-based driver should link to in order to extend it with DDHAL functionality. An existing GPE-based driver should link to DDGPE.lib instead of to GPE.lib. A board support package (BSP) and build configuration-specific version of this file are located in the %_WINCEROOT%\Public\Common\OAK\Lib\<BSP>\<Debug/Retail> directories.
  • DDGPE.h
    Contains DDGPE and DDGPESurf class definitions. These classes extend GPE and GPESurf, respectively. This file is located in the %_WINCEROOT%\Public\Common\OAK\Inc directory and should not be modified.
  • DDGPEUsr.h
    Contains macros that you must define. Move it into the driver's source code directory and modify to as you choose. A copy of this file is located in each driver subdirectory of the %_WINCEROOT%\Public\Common\OAK\Drivers\Display directory.
  • DDHFuncs.h
    Contains several function and variable prototypes. These include DDHAL function prototypes, global variable prototypes, and DDGPE.lib function exports. It is located in %_WINCEROOT%\Public\Common\OAK\Inc and should not be modified.

See Also

Other Resources

Device Drivers