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

 

词条 GetPrinterDriverDirectory
释义

GetPrinterDriverDirectory

VB声明

Declare Function GetPrinterDriverDirectory Lib "winspool.drv" Alias "GetPrinterDriverDirectoryA" (ByVal pName As String, ByVal pEnvironment As String, ByVal Level As Long, pDriverDirectory As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long

说明

判断指定系统中包含了打印机驱动程序的目录是什么

返回值

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

参数表

参数 类型及说明

pName String,服务器的名字。如设为vbNullString,表示使用本地系统

pEnvironment String,欲在其中获取目录的一个环境(如:Windows NT x86)。vbNullString表示使用当前(本地)系统环境

Level Long,设为1

pDriverDirectory Byte,指定一个缓冲区,其中会载入打印机驱动程序目录的完整路径名。可定义成ByVal As String,以便将字节数组分配给一个字串,从而避免执行ANSI到Unicode格式的转换

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

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

随便看

 

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

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2025/2/27 1:07:45