Printer INF File Data Sections

Important

We recommend that you use Microsoft's IPP inbox class driver, along with Print Support Apps (PSA), to customize the print experience in Windows 10 and 11 for printer device development.

For more information, see the Print support app design guide.

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:

DataSection= SectionName

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:

  • [PSCRIPT_DATA]

    Assigns values to the DriverFile, ConfigFile, and HelpFile entries for the Microsoft PostScript Printer Driver.

  • [UNIDRV_DATA]

    Assigns values to the DriverFile, ConfigFile, and HelpFile entries for the Microsoft Universal Printer Driver.

  • [UNIDRV_BIDI_DATA]

    Assigns values to the DriverFile, ConfigFile, HelpFile, and LanguageMonitor entries for the Microsoft Universal Printer Driver, for bidirectional printers.

These data sections should be referenced from within vendor-supplied INF files. For examples, see Installing a Unidrv Minidriver and Installing a Pscript Minidriver.

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.

"Previous Names" Section

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"