Reputation: 1749
I need to get number of copies of a print job. I have its information in a JOB_INFO_1
record, but there is not any field for number of copies. How can I get this value?
Upvotes: 6
Views: 676
Reputation: 116110
Instead of JOB_INFO_1, you will need to get a JOB_INFO_2 structure, which has a pointer to a DEVMODE structure, that in turn has a number of copies field. JOB_INFO_2 can be retrieved using GetJob, just as JOB_INFO_1.
Upvotes: 11