OpenPrintProcessor

HANDLE OpenPrintProcessor(
LPTSTR   pPrinterName
);
 

Opens an instance of the print processor for printing on a specified printer.

pPrinterName Points to the name of the available printer that can be called by WritePrinter.