 |
 |
 |
|
|  |  |
 |
EnumJobs ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The EnumJobs function retrieves information about a specified set of print jobs for a specified printer. |
 |  | | Code examples: |  | |
|
 |  | | Declaration: |  |  |
BOOL EnumJobs(
HANDLE hPrinter, // handle to printer object
DWORD FirstJob, // index of first job
DWORD NoJobs, // number of jobs to enumerate
DWORD Level, // information level
LPBYTE pJob, // job information buffer
DWORD cbBuf, // size of job information buffer
LPDWORD pcbNeeded, // bytes received or required
LPDWORD pcReturned // number of jobs received
);
|
 |  |  | | FoxPro declaration: |  |  |
DECLARE INTEGER EnumJobs IN winspool.drv;
INTEGER hPrinter,;
INTEGER FirstJob,;
INTEGER NoJobs,;
INTEGER Lvl,;
INTEGER pJob,;
INTEGER cbBuf,;
INTEGER @ pcbNeeded,;
INTEGER @ pcReturned
|
 |  |  | | Parameters: |  | hPrinter
[in] Handle to the printer object whose print jobs the function enumerates. Use the OpenPrinter or AddPrinter function to retrieve a printer handle.
FirstJob
[in] Specifies the zero-based position within the print queue of the first print job to enumerate.
NoJobs
[in] Specifies the total number of print jobs to enumerate.
Level
[in] Specifies the type of information returned in the pJob buffer.
pJob
[out] Pointer to a buffer that receives an array of JOB_INFO_1, JOB_INFO_2, or JOB_INFO_3 structures, depending on Level value.
cbBuf
[in] Specifies the size, in bytes, of the pJob buffer.
pcbNeeded
[out] Pointer to a variable that receives the number of bytes copied if the function succeeds.
pcReturned
[out] Pointer to a variable that receives the number of JOB_INFO_1, JOB_INFO_2, or JOB_INFO_3 structures returned in the pJob buffer. |
 |  | | Return value: |  | | If the function succeeds, the return value is a nonzero value. |
 |  | | My comment: |  | The JOB_INFO_1 structure contains general print-job information; the JOB_INFO_2 structure has much more detailed information. The JOB_INFO_3 structure contains information about how jobs are linked.
To determine the number of print jobs in the printer queue, call the GetPrinter function with the Level parameter set to 2.
|
 |  | | Word Index links for the EnumJobs : |  | |
|
 |  | | Translate this page: |  | |  |  | | • |  | | Created: | 2003-01-16 13:51:18 | | Modified: | 2003-01-16 13:54:33 | Visited in last 7 days: 32 |
|
 |
 |
 |
 |
Copyright © 2001-2013
News2News, Inc.
Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use.
The information on this page is presented AS IS, meaning that you may use it at your own risk.
Microsoft Visual FoxPro
and Windows are trade marks
of Microsoft Corp.
All other trademarks are the property of their respective owners.
Privacy policy
|
 |
 |
 |
Credits: PHP (4.4.9), an HTML-embedded scripting language,
MySQL (5.1.55-log), the Open Source standard SQL database,
AceHTML Freeware
Version 4, freeware HTML Editor of choice. Hosted by Korax Online Inc. |
 |
 |
|
 |
 |
|
|