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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.