Contents

PMServerLaunchPrinterBrowser(_:_:)

Launches the printer browser to browse the printers available for a print server.

Declaration

func PMServerLaunchPrinterBrowser(_ server: PMServer?, _ options: CFDictionary?) -> OSStatus

Parameters

  • server:

    The print server to browse. Pass kPMServerLocal to specify the local print server. Currently, you may specify only the local print server.

  • options:

    This parameter is reserved for future use. At the present time, pass NULL. Passing NULL presents the printer browser in the default fashion.

Return Value

A result code. See Result Codes. If you specify a server whose printers cannot be browsed, this function returns the error code kPMInvalidParameter.

Discussion

This function displays the standard printer browser to allow the user to create a new print queue.

See Also

Creating Printer Objects