Partager via


Creating a Display Driver Based on the GPE Classes (Windows CE 5.0)

Send Feedback

Use of the GPE classes is optional but you can use the classes to reduce the amount of time required to develop a display driver.

You only need to provide the new code necessary to make your display hardware operate correctly, and then implement hardware acceleration.

To create a display driver based on the GPE classes

  1. Create a directory for your driver.

  2. Copy the files from a sample driver directories to the directory for your driver.

    For example, copy the files in %_WINCEROOT%\Public\Common\Oak\Drivers\Display\ATI to the directory for your driver.

  3. In the copied files, replace each name that is specific to hardware with the name of your hardware.

  4. Modify the code that initializes and sets the mode for your hardware so the code puts the hardware in linear frame-buffer mode.

    For an example of this code, see the InitializeCard and SetMode functions in the sample driver that you copied from %_WINCEROOT%\Public\Common\Oak\Drivers\Display\ATI.

  5. Disable all hardware-specific acceleration in the driver.

  6. With hardware-specific acceleration disabled, build and test this driver.

  7. Add code to support hardware acceleration in the driver.

See Also

GPE Base Classes | How to Decide Whether to Use GPE in a Display Driver | Benefits and Limitations of GPE Display Drivers | Display Driver Samples

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.