EnumForms |
VB声明 |
|
Declare Function EnumForms Lib "winspool.drv" Alias "EnumFormsA" (ByVal hPrinter As Long, ByVal Level As Long, pForm As Byte, ByVal cbBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long |
|
说明 |
|
枚举一台打印机可用的表单 |
|
返回值 |
|
Long,非零表示成功,零表示失败。会设置GetLastError |
|
参数表 |
|
参数 |
类型及说明 |
hPrinter |
Long,一个已打开的打印机对象的句柄(用OpenPrinter获得) |
Level |
Long,设为1 |
pForm |
Byte,一个包含FORM_INFO_1结构的缓冲区 |
cbBuf |
Long,pForm缓冲区中的字符数量 |
pcbNeeded |
Long,指向一个Long型变量的指针,该变量用于保存请求的缓冲区长度,或者实际读入的字节数量 |
pcReturned |
Long,载入缓冲区的结构数量(用于那些能返回多个结构的函数) |
适用平台 |
|
Windows NT |
|
注解 |
|
参考AddForm函数,了解进一步的情况 |
Top |