Under Windows 3.1, the only way other than using the Control Panel to install a printer driver was for an application to modify WIN.INI directly. But under Windows 95, the printer subsystem does not get any information about an installed printer driver from WIN.INI. Windows 95 applications wishing to install their own printer driver should either:
The relative advantages and disadvantages of each method are summarized in the following table.
Installation Method | Advantages | Disadvantage |
Use Win32 APIs such as AddPrintProcessor or AddMonitor. | Offers flexibility, compared to the .INF file extension method. | Difficult to code and test, compared to the .INF file extension method. |
Use printer-specific .INF file extensions. | Relatively inflexible. | Easy to code and test. |
This section describes how to use the Win32 APIs to install printer support. For information on how to use the printer-specific INF file extensions, see the section "Using the Printer-Specific Windows 95 INF File Extensions."
The topics of printer-specific INF file extensions and using Win32 APIs in a DLL to install printer support are not completely independent. If you decide to develop a DLL to install some level of printer support, you will have to name the DLL in either a VendorSetup or VendorInstaller statement in an INF file in order for your DLL to be known by the Windows 95 printer installer. The VendorSetup and VendorInstaller printer-specific INF file extensions are described in the section "Printer-Specific INF File Extensions Reference."