## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### Data Types (Hardcopy Drivers Only)

For presentation drivers that support the device context type, OD_QUEUED, the driver must support the PM_Q_STD and PM_Q_RAW data types as defined by the Presentation Manager interface. Support for other data types is optional.

The concept of data types only applies when the device context type is OD_ QUEUED. For all other device context types (OD_DIRECT, OD_MEMORY, OD_ METAFILE, OD_METAFILE_NOQUERY, and OD_INFO), the pszDataType field in the DEVOPENSTRUC structure has no meaning. See FillPhysicalDeviceBlock for details on when the DEVOPENSTRUC structure is passed to the presentation driver. However, a hardcopy driver is never requested to open an OD_ METAFILE or OD_METAFILE_NOQUERY device context type because these types are handled by GPI. See Graphics Engine Hardcopy Drivers for details on how the hardcopy driver creates the spool file.

The basic differences between data types, PM_Q_STD and PM_Q_RAW, are described below:

PM_Q_STD The hardcopy driver uses the spooler to create a device- independent spool file using the SplStdxxx and SplQmxxx interfaces.

PM_Q_RAW The hardcopy driver processes the Grexxx functions to generate device-specific output data. This data is written using the spooler SplQm xxx interface to a spool file.