Bewerken

Delen via


Printer INF File Install Sections

Important

The modern print platform is Windows' preferred means of communicating with printers. 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 Modern print platform and the Print support app design guide.

For Windows NT 4.0 and previous, vendors who supplied minidrivers to customers also supplied the customer with a copy of the appropriate Microsoft printer driver, obtained from Microsoft.

Typically, for Windows 2000 and later, vendors do not distribute Microsoft's printer drivers along with their minidrivers. Instead, each vendor supplies an INF file that installs the vendor's files and then invokes Microsoft's printer INF file, Ntprint.inf, which in turn installs the appropriate printer driver components.

Note   Microsoft periodically releases updated versions of its printer drivers.Minidrivers that require features available only in the updated versions might require additional steps. For more information, see Using Updated Core Print Drivers.

Microsoft's printer INF file, Ntprint.inf, contains the following INF DDInstall sections that can be referenced by vendor INF files:

  • [PSCRIPT.OEM]

    Installs the Microsoft Postscript Printer Driver (Pscript).

  • [UNIDRV.OEM]

    Installs the Microsoft Universal Printer Driver (Unidrv).

  • [UNIDRV_BIDI.OEM]

    Installs the Microsoft Universal Printer Driver and Pjlmon.dll, the language monitor that supports Printer Job Language (PJL) and provides bidirectional communication for PJL printers.

  • [TTFSUB.OEM]

    Installs Ttfsub.gpd, which is included with the Windows Driver Kit (WDK) and contains a set of *TTFS entries for common TrueType font substitutions that can be used with Unidrv-supported printers.

  • [sRGBPROFILE.OEM]

    Installs the system's sRGB color profile.

  • [LOCALE.OEM]

    Installs Locale.gpd, which contains locale identifiers. (See Referencing Locales.)

To reference these Install sections from your INF file, the file must use the Include and Needs directives, as illustrated in the following example:

[Manufacturer]
"ABC Printers"
 
[ABC Printers]
"ABC Printer 100ex" = ABC100EX.GPD, ABC_Printer_100ex
 
[ABC100EX.GPD]
CopyFiles=@ABCres.dll,@ABC100EX.gpd
DataSection=UNIDRV_BIDI_DATA      ; Unidrv Bidirectional Data Section
DataFile=ABC100EX.gpd
Include=NTPRINT.INF               ; Include NTPRINT.INF.
Needs=TTFSUB.OEM,UNIDRV_BIDI.OEM  ; Install Unidrv, TrueType subs,
 ;    and PJL language monitor.