I am writing the user interface plug-in for a printer driver for Windows 2000. I
tried hooking DrvDocumentEvent() to capture HDC related calls made to the printer
like CreateDC, ResetDC, StartDoc, EndDoc etc.
I wrote the function as follows:
(In one of my .cpp files)
extern “C” int WINAPI DrvDocumentEvent(…)
{
switch(iEsc)
{
::MessageBox(…);
}
}
The function is not getting called. I had put the function name in the .def file
as well. What should I be doing more for this function to be called.
Is it proper to implement it in UI-Plug-in? Where should I implement it, and what
more should I to make it work?
-Ram.
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
Its not getting called because its not implemented in the first place by
either Pscript5 or Unidrv5 in Windows 2000. Hence, you cant hook it in a
UI plugin.
-Ameet!
-----Original Message-----
From: Ramasubramanian Jayaraman
[mailto:xxxxx@wipro.com]
Sent: Thursday, April 05, 2001 4:09 AM
To: NT Developers Interest List
Subject: [ntdev] DrvDocumentEvent
I am writing the user interface plug-in for a printer driver for Windows
2000. I
tried hooking DrvDocumentEvent() to capture HDC related calls made to
the printer
like CreateDC, ResetDC, StartDoc, EndDoc etc.
I wrote the function as follows:
(In one of my .cpp files)
extern “C” int WINAPI DrvDocumentEvent(…)
{
switch(iEsc)
{
::MessageBox(…);
}
}
The function is not getting called. I had put the function name in the
.def file
as well. What should I be doing more for this function to be called.
Is it proper to implement it in UI-Plug-in? Where should I implement it,
and what
more should I to make it work?
-Ram.
You are currently subscribed to ntdev as: xxxxx@microsoft.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com