IPrintServer2 Interface

The IPrintServer2 interface applies to computer objects. You can use this interface to add printers to a remote machine. You are required to initialize the target machine for installation, this creates the necessary shares on the target machine.

Property/Method

Description

Connected Ports

Comma separated list of all ports to which the new printer will be connected.

Datatype

Gets the print datatype to be used to record a print job.

Initialize

Initializes host for printer installation.

InstallationDiskLabel

Gets the user friendly name of the CDROM required for installing the drivers. This method must be called after Initialize.

InstallDrivers

Installs the printer drivers for the (previously) selected Manufacturer and Model.

InstallNetworkPrinter

Adds a network printer on the machine. The Parameter should be the UNC path of the shared network printer, or may be a user friendly string.

InstallPrinter

Adds a local printer on the machine.

IsDriverInstalled

Determines whether a certain printer driver has already been installed.

Manufacturer

The printer manufacturer selected for install

Model

The printer model selected for install. The model must be one that is supported by the selected manufacturer

OEM DriverInfoFile

UNC path of an OEM Installation File

OEMManufacturer

The OEM printer selected for installation

OEMModel

The OEM printer model selected for installation. This model must be supported by the selected OEM printer

OEMPrinterModels

 

List of OEM supported models for an OEM supported type.

OEMPrinterTypes

List of OEM supported printers.

PrinterModels

 List of all known models of a given printer manufacturer

PrinterTypes

List of all known printer manufacturers

Processor

The print processor to be used by the printer. If specified, this processor must be present in the list of processors as returned by the IPrintServer interface. The default is WinPrint

SetAsDefaultPrinter

Sets a printer as the default printer on a given host

TrustSelectedDrivers

Trusts non-Microsoft Digitally Signed printer drivers. Use this method to enable Windows to trust the drivers for the selected Printer Model

WindowsInstallDisK

The UNC path of the Windows NT Workstation or Windows 2000 CDROM