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/27 07:29,
3.21.12.88:LOG IN
|
©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.org/Techref/os/win/api/win32/func/src/f20_12.htm"> EnumJobs</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to massmind.org! |
.