Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing

Status
Not open for further replies.

pacro

Programmer
Dec 1, 2000
2
BR
I need to get the total Pages printed in my print server
in Win95 or NT (EnumJobs not get total Pages from network).

 
See the parametetr number 5. It has all need information.
BOOL EnumJobs(
HANDLE hPrinter,
DWORD FirstJob,
DWORD NoJobs,
DWORD Level,
LPBYTE pJob,
DWORD cbBuf,
LPDWORD pcbNeeded,
LPDWORD pcReturned
);
It should point to a _JOB_INFO_1 or to a _JOB_INFO_2 structure. The property N11 of _JOB_INFO_1 is the number of pages to print. The structure _JOB_INFO_2 is bugger theh _JOB_INFO_1 but more complete. It has the same member TotalPages in the 19th position.

typedef struct _JOB_INFO_1 {
DWORD JobId;
LPTSTR pPrinterName;
LPTSTR pMachineName;
LPTSTR pUserName;
LPTSTR pDocument;
LPTSTR pDatatype;
LPTSTR pStatus;
DWORD Status;
DWORD Priority;
DWORD Position;
DWORD TotalPages;
DWORD PagesPrinted;
SYSTEMTIME Submitted;
} JOB_INFO_1, *PJOB_INFO_1;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top