OpenPrinter |
VB声明 |
|
Declare Function OpenPrinter Lib "winspool.drv" Alias "OpenPrinterA" (ByVal pPrinterName As String, phPrinter As Long, pDefault As PRINTER_DEFAULTS) As Long |
|
说明 |
|
打开指定的打印机,并获取打印机的句柄 |
|
返回值 |
|
Long,非零表示成功,零表示失败。会设置GetLastError |
|
参数表 |
|
参数 |
类型及说明 |
pPrinterName |
String,要打开的打印机的名字 |
phPrinter |
Long,用于装载打印机的句柄 |
pDefault |
PRINTER_DEFAULTS,这个结构保存要载入的打印机信息 |
Top |