M.mhr
M.mhr

Reputation: 1749

How do I get the number of copies from a print job?

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

Answers (1)

GolezTrol
GolezTrol

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

Related Questions