Hello,
I am trying to develop a print monitor.But I get a serveral problem.Wish
somebody could give me any help.
First,I hooked EndDocPrinter API and use GetJob to retrive information of
Job.Most parameter in DEVMODE structure is right,but when I print a document
in MSWORD, dmCopies always is set “1”. This is why? Is this a bug of
Microsoft?
Second, I hooked Windows API PrintDlg, but when I print in notepad,MSWORD
etc…PrintDlg is not be passthrough.This is why? PrintDlg is not be
invoked when printing in Notpad,MSWORD?
Third,In DEVMODE structure,there is a parameter named “dmNup”, and it has
relation with two const “DMNUP_SYSTEM” and “DMNUP_ONEUP”,all of them is not
available.That means I cannot find their protype or declaration in
wingdi.h.This is why? What on earch is Microsoft doing?
Who can help me?