Printer INF File Data Sections
The default Windows 2000 and later printer class installer, Ntprint.dll, allows printer INF files to contain data sections. Data sections are specified using the following format:
where SectionName is an INF file section name.
Data sections are used for specifying sets of printer INF file entries that are common to multiple printers. By grouping the common entries in a list under the named section, and then referencing that section with a DataSection statement for each printer that uses the entries, the entry list has to be included only once in the INF file.
Microsoft's printer INF file, Ntprint.inf, defines the following data sections:
Assigns values to the DriverFile, ConfigFile, and HelpFile entries for the Microsoft PostScript Printer Driver.
Assigns values to the DriverFile, ConfigFile, and HelpFile entries for the Microsoft Universal Printer Driver.
Assigns values to the DriverFile, ConfigFile, HelpFile, and LanguageMonitor entries for the Microsoft Universal Printer Driver, for bidirectional printers.
Note An IHV printer INF file that has either a Needs entry or an Include entry that refers to Ntprint.inf must not contain data section names that are the same as any INF section name present in Ntprint.inf. Before naming a data section in a vendor-supplied printer INF file, search %windir%/inf/Ntprint.inf to be sure that your section name does not already exist as a section name (of any type) within Ntprint.inf.
The Windows 2000 and later printer class installer recognizes a special data section called "Previous Names". One of these sections is permitted in each INF file. Entries in the section identify drivers for which the printer name is different for Windows 2000 and later than it is for Windows 95/98/Me. Specifying such name differences allows Point and Print to be supported for Windows 95/98/Me clients connecting to Windows 2000 and later servers.
The format for each entry in this section is:
"Windows 2000 or later Printer Name" = "Windows 95/98/Me Printer Name"
The following are sample entries:
[Previous Names] "HP Color LaserJet" = "HP Color LaserJet (MS)" "HP DeskJet 1200C" = "HP DeskJet 1200C (MS)" "HP DeskJet 310" = "HP DeskJet 310 Printer"