PrinterProperties
VB声明
Declare Function PrinterProperties Lib "winspool.drv" Alias "PrinterProperties" (ByVal hwnd As Long, ByVal hPrinter As Long) As Long
说明
启动打印机属性对话框,以便对打印机进行配置
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
hwnd Long,对话框的父窗口
hPrinter Long,一个已打开的打印机的句柄
注解

如打印机打开的时候没有使用足够的访问权限,对话框的有些功能也许会禁止使用

Top