Re: AVStream: DispatchShutdown handler
- From: "Max Paklin" <mpaklin@xxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 22:17:56 -0700
First, why do you think you need to prevent device removal? And why do you
think you need to handle IRP_MJ_SHUTDOWN?
Anyways to stop AVStream device removal you should implement
KSDEVICE_DISPATCH::QueryRemove. It is a simple delegate for
IRP_MN_QUERY_REMOVE_DEVICE, which is what you should be using to reject
device removal attempt.
-- Max.
"Igor Slewsarev" <slewsarev_no_spam_@xxxxxxxxxxxxxxxx> wrote in message
news:%23f5EIZZfFHA.1472@xxxxxxxxxxxxxxxxxxxxxxx
> Hi, all!
>
> I have to add IRP_MJ_SHUTDOWN handler for
> AVStream miniport driver. How should I prevent
> device from being removed? Does ks.sys support
> some kind of remove lock. If so, how can I acquire
> it?
>
> WBR
> Igor
>
.
- Follow-Ups:
- Re: AVStream: DispatchShutdown handler
- From: Igor Slewsarev
- Re: AVStream: DispatchShutdown handler
- From: Igor Slewsarev
- Re: AVStream: DispatchShutdown handler
- Prev by Date: Re: Acquiring a mutex in DPC
- Next by Date: 64-bit driver compile error
- Previous by thread: Re: Acquiring a mutex in DPC
- Next by thread: Re: AVStream: DispatchShutdown handler
- Index(es):
Relevant Pages
|