GDI Support Services

GDI exports many service routines that can simplify driver design. The driver can call these routines directly. The names of routines that are general graphics engine services start with Eng. Service routines related to a particular object always start with the name of the object; for example, CLIPOBJ_cEnumStart is a CLIPOBJ service.

Note The service routines in which the first argument is a pointer to a user object are methods on that user object, and are called using the usual C++ conventions. Therefore, drivers written in C++ can access the service routines as methods.

These service routines fall into the following categories:

·Surface management

·Palette services

·Path services

·Rendering services

·Font and text services

Supporting the DDI describes the DDI entry points and also explains where many of these service routines can be used to help the driver implement the entry points. For detailed descriptions of each of the service functions, see the Graphics Driver Reference.