Hi again,
After reading some material on printers, and asking questions in
forums, I am still confused.
So I thought I might try to rephrase my question and get a better
answer.
My final goal - Get an EMF from EVERY print that is issued (on every
printer installed and from every application), analyze it, and stop or
resume the print.
I know EMF is undocumented, but these are my requirements so I want to
stick to it in the meantime.
My idea was to somehow make sure all spool files will contain EMF and
not text or RAW. (And extract the EMF from the spool file)
If I'll send all prints through a dummy printer driver (maybe I'll
change in the registry and put my printer driver for all installed
printers) which is local and always uses "Advance printing
features" (set from the code) I should accomplish this?
Is there another possibility?
After I analyze the EMF, if I decide so, I can resend the spool file to
a real printer to be printed. (Using OpenPrinter and WritePrinter).
Again, this solution has to work on both local and network printer
(eventually, I need the EMF on my system not on a remote one)
Thanks.