词条 | EnumPrinterDrivers |
释义 | EnumPrinterDrivers VB声明 Declare Function EnumPrinterDrivers Lib "winspool.drv" Alias "EnumPrinterDriversA" (ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Long, pDriverInfo As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcRetruned As Long) As Long 说明 枚举指定系统中已安装的打印机驱动程序 返回值 Long,非零表示成功,零表示失败。会设置GetLastError 参数表 参数 类型及说明 pName String,指定服务器的名字。用vbNullString指定本地系统 pEnvironment String,欲在其中对驱动程序进行枚举的环境(如:Windows NT x86)。如设为vbNullString,表示使用当前(本地)系统环境 Level Long,1,2或3(3仅适用于Windows 95和NT 4.0) pDriverInfo Byte,包含DRIVER_INFO_1, DRIVER_INFO_2 或 DRIVER_INFO_3结构的缓冲区 cbBuf Long,pDriverInfo缓冲区中的字符数量 pcbNeeded Long,指向一个Long型变量的指针,该变量用于保存请求的缓冲区长度,或者实际读入的字节数量 pcReturned Long,载入缓冲区的结构数量(用于那些能返回多个结构的函数) |
随便看 |
百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。