EnumJobs
C# Signature:
[DllImport("Winspool.drv", SetLastError=true, EntryPoint="EnumJobsA")]
public static extern bool EnumJobs(
IntPtr hPrinter, // handle to printer object
UInt32 FirstJob, // index of first job
UInt32 NoJobs, // number of jobs to enumerate
UInt32 Level, // information level
IntPtr pJob, // job information buffer
UInt32 cbBuf, // size of job information buffer
out UInt32 pcbNeeded, // bytes received or required
out UInt32 pcReturned // number of jobs received
);VB Signature:
Public Declare Function EnumJobs Lib "winspool.drv" Alias "EnumJobsA" _
(ByVal hPrinter As IntPtr, _
ByVal FirstJob As UInt32, _
ByVal NoJobs As UInt32, _
ByVal Level As UInt32, _
ByVal pJob As IntPtr, _
ByVal cdBuf As UInt32, _
ByRef pcbNeeded As UInt32, _
ByRef pcReturned As UInt32) _
As LongUser-Defined Types:
Sample Code:
Última actualización