|
Overview |
|
|
|
Group |
|
|
|
Quick Info
Windows NT
| Yes
| Win95
| Yes
| Win32s
| No
| Import Library
| winspool.lib
| Header File
| winspool.h
| Unicode
| WinNT
| Platform Notes
| None
|
|
|
GetJob
The GetJob function retrieves print-job data for the specified printer.
BOOL GetJob(
HANDLE hPrinter,
| // handle of printer
| DWORD JobId,
| // job identifier value
| DWORD Level,
| // data-structure level
| LPBYTE pJob,
| // address of data-structure array
| DWORD cbBuf,
| // count of bytes in array
| LPDWORD pcbNeeded
| // address of value that contains count of bytes retrieved (or required)
| );
|
|
Parameters
hPrinter
Identifies the printer for which the print-job data is retrieved.
JobId
Identifies the print job for which data should be retrieved.
Level
Specifies the level of the structure to which pJob points. This value must be either 1 or 2.
pJob
Points to an array that contains either a JOB_INFO_1 or a JOB_INFO_2 structure. If Level is 1, this function stores the data in a JOB_INFO_1 structure; if Level is 2, this function stores the data in a JOB_INFO_2 structure.
cbBuf
Specifies the size, in bytes, of the array.
pcbNeeded
Points to a value that specifies the number of bytes copied if the function
succeeds or the number of bytes required if cbBuf is too small.
Return Values
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.
See Also
AddJob, JOB_INFO_1, JOB_INFO_2, ScheduleJob, SetJob
Related Links
Software for Delphi and C++ Builder developers
Software for Visual Studio .NET developers
Software for Visual Basic 6 developers
Delphi Tips&Tricks
MegaDetailed.NET
TMS Scripter Studio Pro components for Delphi/C++Builder
More Online Helps
Win32 Multimedia Programmer's Reference (mmedia.hlp)
OLE Programmer's Reference (ole.hlp)
Microsoft Windows Pen API Programmer's Reference (penapi.hlp)
Microsoft Windows Sockets 2 Reference (sock2.hlp)
Microsoft Windows Telephony API (TAPI) Programmer's Reference (tapi.hlp)
Unix Manual Pages
|