## Printer Device Driver

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

### ReadTrayPageMapINI

This function reads the mapped tray and page data from the OS2SYS.INI file. The application name is the printer/device name and the key name is Papertype. The data is stored in the form:

    "TRAYNAME1,FORMNAME1;TRAYNAME2,FORMNAME2;...\0"

where "FORMNAME" is the string name of the form (found in the PPD) that is mapped to TRAYNAME (also found in the PPD). This function parses the INI string data and stores the data in the PSOURCE structure. If a buffer is already provided (pReturnBuffer), the INI data is stored in the return buffer. This function also is backward compatible in regard to the INI string. This function can read previous forms:

    "FORMNAME1;FORMNAME2;...;FORMNAMEn"

In this format, the form names are mapped to tray names that are organized according to the PPD. For example, FORMNAME1 maps to the first tray found in the PPD.