#include "BIADVPRN.H"
HDC CALLBACK BiOpenPrinter( LPCTSTR lpszPrinterName,
CONST DEVMODE * lpInitData)
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.
Parameters
|
LPCTSTR |
LpszPrinterName |
Printer name. |
|
CONST DEVMODE * |
lpInitData |
Printer settings to be used. |
Additional Information
This example shows how to use the dll when loading statically including the header file. Otherwise if the dll is loaded dynamically, for further information read the “About the difference of static and dynamic library loading” section of the manual.
Return values
HDC of the printer or NULL on error.
Requirements
Header : Declared in BiAdvPrn.h; include BiAdvPrn.h.
Library : Use BiAdvPrn.lib.
DLLs : BiAdvPrn.dll.