I'm using Windows API's EnumJobs to find the PageCount and Copies of a print job, but I found that these fields are almost always zero when called on a print server.
Although it could be my timing is out, because the number of pages increment as the job prints and once it's done the print job cannot be accessed. So there is about half a nanosecond when the values in EnumJobs is correct before it dissapears.
I've been scouring the web but can't find any help on this, just other people with similar problems.
Anybody with experience with EnumJobs or can suggest other means of determining the total number of pages printed?