Originally posted by: Oscar Blass
I am interested in hooking functionality of a program
"around" the Generic/Text only printer driver from
Microsoft. The most closely related example I can think
of is how any application can magically fax if the fax
machine looks like just another printer to the application.
I have no patience for the sheer depth and complexity of the DDK. I have looked at the DDK documentation. I read about the WMI documenation, driver architecture guidelines, display drivers, User vs. Kernel mode drivers, about minidrivers, Printer Graphics DLLs, Printer User Interface DLLs, propery pages, .inf files, driver installation, and on and on...
I am still no closer to an understanding of how to do this wraping. Is the printer spooler the place I should place my hooks? Can I base one driver on another functionaly (your little dirty hack to get the number of pages briefly inspired me) or programatically. I know there are samples in the DDK. I just need a push in the right direction.
Regards,
Oscar Blass
Reply
Originally posted by: senthil kumar
Hi,
I want to find the number of pages printed in a printer. I got the details, document name,printer name, machine name etc.,
But how can i get the number of total pages printed
ReplyOriginally posted by: hua yuan
Suppose I use enumports to get a port list and select one
I need to get the related port monitor dll path for this port to load the port monitor library call it's exported
I try EnumMonitors and EnumPorts and seem it's not the way.
hua yuan
hi, you coded a port monitor according to windows system design. it's nice job. But I have a question is how to open and write a port use c++ code.
as current port , then I want to send out data.
initlizeMoinoter functions to get a function table which contain its open/close/read/write rountine.
any idea?
TIA.
Originally posted by: Oren Farber
How can I verify that a page that sent to the printer printed correctly?
Originally posted by: Terry
Can I use the mentioned codes to detect a print request in order to implement control measure on printer, such as accounting or authentication?
ReplyOriginally posted by: Rob Hegt
I once stumbled upon a more generic port monitor, that alows you to do almost anything you like with the printer data. It is called RedMon (for redirecting port monitor) and is linked to the Ghostview stuff. It comes with source code and works fine.
I used this to do the opposite of what you are doing: my solution captured the print data and stored it by HTTP file upload on a web server.
Anyway, nice to see an alternative solution.
ReplyOriginally posted by: Jeff Tomich
All I did was to create a port with a filename in my printer object from the dialog properties box after I installed the print driver.
Then when I print to that printer it will print to a file that I specified in the properties without the dialog box popping up.
Am I missing something here?
Thanks,
Jeff
Originally posted by: Peter Drysdale
Re: Stop starting the spooler,
I write a whole batch of print driver's and port monitors, Stopping and starting the spooler to add a new port monitor to the system is not required,
I can let you have a GUI that will Add and remove a Port monitor,
regards,
Reply
Originally posted by: Michael Girke
Very interesting job.
But download of source and sample is impossible.
The download links to the nirwana.
best regards
Michael