The EnumJobs function initializes an array of either JOB_INFO_1 or JOB_INFO_2 structures with data describing the specified print jobs for the specified printer.
BOOL EnumJobs(
HANDLE hPrinter, |
// handle to printer object |
DWORD FirstJob, |
// location of first job in print queue to enumerate |
DWORD NoJobs, |
// number of jobs to enumerate |
DWORD Level, |
// structure level |
LPBYTE pJob, |
// pointer to structure array |
DWORD cbBuf, |
// size of array, in bytes |
LPDWORD pcbNeeded, |
// addr. of variable with no. of bytes copied (or required) |
LPDWORD pcReturned |
// addr. of variable with no. of job info. structures copied |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
The handle hPrinter is obtained by calling the OpenPrinter function.
The JOB_INFO_1 structure contains general print-job information; the JOB_INFO_2 structure has much more detailed information.
GetJob, JOB_INFO_1, JOB_INFO_2, OpenPrinter, SetJob
file: /Techref/os/win/api/win32/func/src/f20_12.htm, 5KB, , updated: 2000/4/7 11:19, local time: 2024/11/7 19:37,
3.128.95.199:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://massmind.ecomorder.com/Techref/os/win/api/win32/func/src/f20_12.htm"> EnumJobs</A> |
Did you find what you needed? |
Welcome to ecomorder.com! |
Welcome to massmind.ecomorder.com! |
.