## Printer Device Driver

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

### Subclassed Function Table

This table should contain the default function the plug-in module will attempt to subclass to generate a print job. Although the Omni driver does not require any function to be subclassed, the Omni core driver default action is to do nothing for these calls.

The core Omni driver will allow you to dynamically modify this table in the "device query" function for printers that require special handling.

The following is an example of a subclassed function table with six functions subclassed. The functions that appear in this table would typically be coded in Function Section.

         FNSUBCLASS SAMPLE_Subclassed_Functions =
         {
            SampleBeginJob,         // pfnInitJob; -subclassed
            SampleChooseRasterize,  // pfnRasterizeBand; -subclassed
            SampleNewFrame,         // pfnNextPage; -subclassed
            SampleEndJob,           // pfnTermJob; -subclassed
            SampleAbortJob,         // pfnAbortJob; -subclassed
            SampleDeviceQuery,      // pfnDeviceQuery; -subclassed
            NULL,                   // pfnQueryFonts;
            NULL,                   // pfnDeviceOpen;
            NULL,                   // pfnDeviceClose;
            NULL,                   // pfnDeviceWrite;
            NULL,                   // pfnSpoolerOpen;
            NULL,                   // pfnSpoolerStartJob;
            NULL,                   // pfnSpoolerEndJob;
            NULL,                   // pfnSpoolerClose;
         }; /* end Subclassed_Functions */