EnumJobs function winspool
The EnumJobs function retrieves information about a specified set of print jobs for a specified printer.
BOOL EnumJobsW(
_In_ HANDLE hPrinter,
_In_ DWORD FirstJob,
_In_ DWORD NoJobs,
_In_ DWORD Level,
_Out_ LPBYTE pJob,
_In_ DWORD cbBuf,
_Out_ LPDWORD pcbNeeded,
_Out_ LPDWORD pcReturned
);
Implementation
int EnumJobs(
int hPrinter,
int FirstJob,
int NoJobs,
int Level,
Pointer<Uint8> pJob,
int cbBuf,
Pointer<Uint32> pcbNeeded,
Pointer<Uint32> pcReturned) =>
_EnumJobs(
hPrinter, FirstJob, NoJobs, Level, pJob, cbBuf, pcbNeeded, pcReturned);