klone Posted December 24, 2004 Posted December 24, 2004 Currently I'm working on a printer monitoring project. The aim of the project is to monitor a printer and be able to tell the # of pages printed by the printer, the user who sent the print job and things of that sort. At the moment am using WMI to achieve this... the problem is the application is too slow and a lot of memory is used... so am wondering it there is anyway I could get a documentation of the class/functions contained in windows winspool driver so that i can use it instead of WMI. Please help me... Quote
*Gurus* Derek Stone Posted December 24, 2004 *Gurus* Posted December 24, 2004 http://msdn.microsoft.com/library/en-us/gdi/prntspol_7mgj.asp Quote Posting Guidelines
klone Posted December 25, 2004 Author Posted December 25, 2004 Thanx Just visited the link u posted. seem to be what I need. I'll keep u informed. Thanx again. Quote
*Experts* Merrion Posted December 30, 2004 *Experts* Posted December 30, 2004 One of the problems of using the windows API for this (believe me, I have a lot of difficult experience in this area) is that some applications do not give the correct number of copies to the spooler monitor. For instance Microsoft Word passes different number of copies depending on whether or not the collation options are set.... Instead you need to parse the spool file and count the number of pages it contains. Quote Printer Monitor for .NET? - see Merrion Computing Ltd for details
klone Posted January 24, 2005 Author Posted January 24, 2005 I've seen the dll produced by Merrion. As a matter of fact I downloaded the test copy but unfortunately i've been unable to use it. What I ask for if u can help me is how to lay hands on the Winspool.drv documentation. I notice that u guys did not use WMI as a matter of fact u used Winspool.drv and I feel its the way to go. So pls send me a link. Thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.