3.1.4.2 Printer Management and Discovery Methods

This section specifies methods for discovering and obtaining access to supported printers.

Method

Description

RpcEnumPrinters

RpcEnumPrinters enumerates available printers, print servers, domains, or print providers.

Opnum 0

RpcOpenPrinter

RpcOpenPrinter retrieves a handle for a printer, port, port monitor, print job, or print server.

Opnum 1

RpcAddPrinter

RpcAddPrinter adds a printer to the list of supported printers for a specified server.

Opnum 5

RpcDeletePrinter

RpcDeletePrinter deletes the specified printer object.

Opnum 6

RpcSetPrinter

RpcSetPrinter sets the data for a specified printer or sets the state of the specified printer by pausing or resuming printing or clearing all print jobs.

Opnum 7

RpcGetPrinter

RpcGetPrinter retrieves information about a specified printer.

Opnum 8

RpcGetPrinterData

RpcGetPrinterData retrieves printer configuration data for a printer or print server.

Opnum 26

RpcSetPrinterData

RpcSetPrinterData sets the configuration data for a printer or print server.

Opnum 27

RpcClosePrinter

RpcClosePrinter closes a handle to a printer object, server object, job object, or port object.

Opnum 29

RpcCreatePrinterIC

RpcCreatePrinterIC called by the Graphics Device Interface (GDI) to create an information context for a printer.

Opnum 40

RpcPlayGdiScriptOnPrinterIC

RpcPlayGdiScriptOnPrinterIC returns identifying information for fonts available for printing to a printer object.

Opnum 41

RpcDeletePrinterIC

RpcDeletePrinterIC deletes a printer information context.

Opnum 42

RpcResetPrinter

RpcResetPrinter resets the data type and device mode values to use for printing documents submitted by the RpcStartDocPrinter method (section 3.1.4.9.1).

Opnum 52

RpcOpenPrinterEx

RpcOpenPrinterEx retrieves a handle for a printer, port, port monitor, print job, or print server.

Opnum 69

RpcAddPrinterEx

RpcAddPrinterEx installs a printer on the print server.

Opnum 70

RpcEnumPrinterData

RpcEnumPrinterData enumerates configuration data for a specified printer.

Opnum 72

RpcDeletePrinterData

RpcDeletePrinterData deletes specified configuration data for a printer.

Opnum 73

RpcSetPrinterDataEx

RpcSetPrinterDataEx sets the configuration data for a printer or print server. This method extends RpcSetPrinterData (section 3.1.4.2.8), but by additionally allowing the caller to specify the registry key under which to store the data.

Opnum 77

RpcGetPrinterDataEx

RpcGetPrinterDataEx retrieves configuration data for the specified printer or print server. This method extends RpcGetPrinterData (section 3.1.4.2.7) and can retrieve values sorted under a specified key by RpcSetPrinterDataEx (section 3.1.4.2.18).

Opnum 78

RpcEnumPrinterDataEx

RpcEnumPrinterDataEx enumerates all value names and data for a specified printer and key. This method extends RpcEnumPrinterData (section 3.1.4.2.16) by retrieving several values in a single call.

Opnum 79

RpcEnumPrinterKey

RpcEnumPrinterKey enumerates the subkeys of a specified key for a specified printer. Printer data is stored in the registry.

Opnum 80

RpcDeletePrinterDataEx

RpcDeletePrinterDataEx deletes a specified value from a printer's configuration data, which consists of a set of named and typed values stored in a hierarchy of registry keys.

Opnum 81

RpcDeletePrinterKey

RpcDeletePrinterKey deletes a specified key and all of its subkeys for a specified printer.

Opnum 82

RpcAddPerMachineConnection

RpcAddPerMachineConnection stores the print server name and the name of the binary executable used as a provider for a particular connection.

Opnum 85

RpcDeletePerMachineConnection

RpcDeletePerMachineConnection deletes information about a server and connection provider.

Opnum 86

RpcEnumPerMachineConnections

RpcEnumPerMachineConnections enumerates each connection and copies PRINTER_INFO_4 structures (section 2.2.1.10.5) for all the per-machine connections into the buffer pPrinterEnum.

Opnum 87

RpcSendRecvBidiData

RpcSendRecvBidiData sends and receives bidirectional data. This method is used to communicate with port monitors that support such data.

Opnum 97