PMSessionSetCurrentPrinter
Changes the current printer for a printing session to a printer specified by name.
Declaration
OSStatus PMSessionSetCurrentPrinter (
PMPrintSession session,
CFStringRef printerName
);Parameters
- session:
The printing session whose printer you want to change.
- printerName:
The name of the printer you want to set as the current printer.
Return Value
A result code. See Result Codes.
Overview
You must call this function between the creation and release of a printing session. See the function PMCreateSession.