请输入您要查询的百科知识:

 

词条 EnumPrintProcessors
释义

EnumPrintProcessors

VB声明

Declare Function EnumPrintProcessors Lib "winspool.drv" Alias "EnumPrintProcessorsA" (ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Long, pPrintProcessorInfo As Byte, ByVal cdBuf As Long, pcbNeeded As Long, pcReturned As Long) As Long

说明

枚举系统中可用的打印处理器

返回值

Long,非零表示成功,零表示失败。会设置GetLastError

参数表

参数 类型及说明

pName String,指定服务器的名字。用vbNullString表示使用本地系统

pEnvironment String,欲枚举的打印处理器的环境(如:Windows NT x86)。如设为vbNullString,表示使用当前(本地)系统环境

Level Long,设为1

pPrintProcessorInfo Byte,包含PRINTPROCESSOR_INFO_1结构的缓冲区

cbBuf Long,pPrintProcessorInfo缓冲区中的字符数量

pcbNeeded Long,指向一个Long型变量的指针,该变量用于保存请求的缓冲区长度,或者实际读入的字节数量

pcReturned Long,载入缓冲区的结构数量(用于那些能返回多个结构的函数)

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/7 19:04:42