GetPrintProcessorDirectory
VB声明
Declare Function GetPrintProcessorDirectory Lib "winspool.drv" Alias "GetPrintProcessorDirectoryA" (ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Long, ByVal pPrintProcessorInfo As String, ByVal cdBuf As Long, pcbNeeded As Long) As Long
说明
判断指定系统中包含了打印机处理器驱动程序及文件的目录
返回值
Long,非零表示成功,零表示失败。会设置GetLastError
参数表
参数 类型及说明
pName String,指定服务器的名字。设置成vbNullString则表示使用本地系统
pEnvironment String,欲在其中获取目录的一个环境(如:Windows NT x86)。用vbNullString表示使用当前(本地)系统环境
Level Long,设为1
pPrintProcessorInfo String,指定一个缓冲区,其中载入打印机处理器目录的完整路径。可定义成ByVal As String,以便将字节数组分配给一个字串,从而取消进行ANSI到Unicode转换的必要
cbBuf Long,pPrintProcessorInfo缓冲区中的字符数量
pcbNeeded Long,指向一个Long型变量的指针,该变量用于保存请求的缓冲区长度,或者实际读入的字节数量

Top