## Printer Device Driver

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

### Modify Application Name Used in INI files

The Omni driver stores user defined features and printer properties in a named location in the OS/2 system INI file. You must change the name of this location, as follows, to avoid conflicts with the Omni driver.

1.In the file driver.h, look for the following lines:

            #ifndef DDKBLD
            #define APPNAME_DEBUGINFO         "OmniDriver"
            #else
            #define APPNAME_DEBUGINFO         "SampDriver"
            #endif

2.Replace the name "SampDriver" with the name you want information to be stored under in the OS/2 system INI file for your driver.

3.In the file driver.h, look for the following lines:

             #else // this is a DDKBLD
             PDRIVERINFO Drivers[]  = {
                pSAMPPCLDriver     ,
                pSAMPEPSONDriver   ,
                pTIFFDriver        ,
             };
             #endif

4.Replace the DRIVERINFO pointers, such as pSAMPPCLDriver and pSAMPEPSDriver, to include only the pointer to the DRIVERINFO structure you declared in your plug-in module.