GetJob |
VB声明 |
|
Declare Function GetJob Lib "winspool.drv" Alias "GetJobA" (ByVal hPrinter As Long, ByVal JobId As Long, ByVal Level As Long, pJob As Byte, ByVal cdBuf As Long, pcbNeeded As Long) As Long |
|
说明 |
|
获取与指定作业有关的信息 |
|
返回值 |
|
Long,非零表示成功,零表示失败。会设置GetLastError |
|
参数表 |
|
参数 |
类型及说明 |
hPrinter |
Long,一个已打开的打印机的句柄(用OpenPrinter获得) |
JobId |
Long,作业编号 |
Level |
Long,1或2 |
pJob |
Byte,包含JOB_INFO_1 或 JOB_INFO_2结构的缓冲区,结构中包含了与打印作业有关的信息 |
cbBuf |
Long,pJob缓冲区中的字符数量 |
pcbNeeded |
Long,指向一个Long型变量的指针,该变量用于保存请求的缓冲区长度,或者实际读入的字节数量 |
Top |