BiOpenPrinter

Description         This function opens a printer and returns an hDC for the printer. The printer to be opened can be specified by it’s name, and settings can be specified by lpInitData. If lpInitData is NULL, the current settings of the printer will be used.

Syntax                 RetVal = [BIPrint.]BiOpenPrinter  lpszPrinterName lpInitData

Returns               RetVal                    LONGLONG HDC of the printer or NULL on error.

Remarks             lpszPrinterName   STRING         Printer name.

                            lpInitData              CONST DEVMODE *           Printer settings to be used.

See Also