Printer Driver in use

Hi,

What is the best way to detect if a specified printer driver is being
used by the system (Win 2K/XP/2K3)?
This info is required to prompt the user to close the ui/delete the jobs
etc before uninstalling the current version and updating it with a newer
driver.

Any info on this will be very helpful

Thanks
Shalini

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Developer
Sent: Tuesday, August 09, 2005 2:08 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] higher level drivers

mark,

Filesystem filter drivers might do this to, for example, open and scan
a
file for viruses before allowing a user open to succeed.

but then the upper level driver will eventually get control of the
IRP, won’t it?

-Developer

On 8/8/05, Roddy, Mark wrote:
> Filesystem filter drivers might do this to, for example, open and scan
a
> file for viruses before allowing a user open to succeed.
>
> -----Original Message-----
> From: xxxxx@lists.osr.com
> [mailto:xxxxx@lists.osr.com] On Behalf Of Developer
> Sent: Monday, August 08, 2005 11:50 AM
> To: Windows System Software Devs Interest List
> Subject: Re: [ntdev] higher level drivers
>
> can u give me a situation where this technique should be used/can be
> used?
>
>
>
>
>
>
> On 8/8/05, Gary G. Little wrote:
> > Sure it is … all you need is a pointer to the proper DEVICE_OBJECT
> for
> > that driver. However, if that driver in turn calls you, either
> directly or
> > indirectly, with the same IRP you could end up in a rather circular
> > situation.
> >
> > –
> > The personal opinion of
> > Gary G. Little
> >
> > “Albert Pinto” wrote in message
> news:xxxxx@ntdev…
> > If I set the stack location properly, is it possible for me to call
a
> > driver at a higher level, sitting at a lower level?
> >
> > - albert
> >
> >
> >
> > —
> > Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
> >
> > You are currently subscribed to ntdev as: xxxxx@gmail.com
> > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> >
>
>
> –
>
> - Developer
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument:
> ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: unknown lmsubst tag
argument: ‘’
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>



- Developer


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com