3.1.4.4 Printer Driver Management Methods

This section specifies methods for discovering and installing printer drivers.

Method

Description

RpcAddPrinterDriver

RpcAddPrinterDriver installs a printer driver on the print server and links the configuration, data, and printer driver files.

Opnum 9

RpcEnumPrinterDrivers

RpcEnumPrinterDrivers enumerates the printer drivers installed on a specified print server.

Opnum 10

RpcGetPrinterDriver

RpcGetPrinterDriver retrieves printer driver data for the specified printer.

Opnum 11

RpcGetPrinterDriverDirectory

RpcGetPrinterDriverDirectory retrieves the path of the printer driver directory.

Opnum 12

RpcDeletePrinterDriver

RpcDeletePrinterDriver removes the specified printer driver from the list of supported drivers for a server.

Opnum 13

RpcGetPrinterDriver2

RpcGetPrinterDriver2 retrieves printer driver data for the specified printer.

Opnum 53

RpcDeletePrinterDriverEx

RpcDeletePrinterDriverEx removes the specified printer driver from the list of supported drivers for a server and deletes the files associated with the printer driver. This method also can delete specific versions of the printer driver.

Opnum 84

RpcAddPrinterDriverEx

RpcAddPrinterDriverEx installs a printer driver on the print server. This method performs a similar function as RpcAddPrinterDriver (see section 3.1.4.4.1) and is also used to specify options that permit printer driver upgrade, printer driver downgrade, copying of newer files only, and copying of all files (regardless of their time stamps).

Opnum 89

RpcGetCorePrinterDrivers

RpcGetCorePrinterDrivers gets the GUIDs, versions, and publish dates of the specified core printer drivers, and the paths to their packages.

Opnum 102

RpcGetPrinterDriverPackagePath

RpcGetPrinterDriverPackagePath gets the path to the specified printer driver package.

Opnum 104

Show: