More confusion in debugging printer driver :(
I am debugging the MSPLOT sample driver by placing OutputDebugString on the
main exported functions to see which of these are being called, on adding the
driver by the add printer wizard.
Using WinDbg I am receving some output from DllMain and DrvQueryDriver but
after that all output stop (not because these are the only functions called,
it has to build the propertysheets so wheres the output from those
functions), even if I output to a trace file. Whats strange is that I am
recieving some error msgs from DrvDeviceCapabilities but without recieving
the debug str that i wrote to inform me that it entered the function.
I think it could be because
1. The driver fell to Kernel Mode at somepoint
2. The driver created some other process outside the spooler and all msgs
are falling
3. The spooler process doesn´t give me the rights to see the messages or
doesn´t allow the driver to send messages or write to files!
What do you people think?