Re: AVStream: DispatchShutdown handler



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
>


.



Relevant Pages

  • Re: AVStream: DispatchShutdown handler
    ... WBR ... Igor ... not only to power policy owners. ... Prev by Date: ...
    (microsoft.public.development.device.drivers)
  • Queue upcall locking (was: [dm-devel] [RFC][PATCH] fix dm_any_congested() to properly sync up wi
    ... so that dm_suspend is not waiting forever. ... md->map_lock spinlock and drop this reference counting at all. ... in contention are inode lock and kernel lock. ... prev = 0xffff81014941fdc0 ...
    (Linux-Kernel)
  • Maintaining Formula after adding a new row
    ... merged cells caused some problems with the lock. ... shaught's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=30802 ... Prev by Date: ...
    (microsoft.public.excel.newusers)
  • forms/lines/ fields HELP!!
    ... to draw lines, for the handwritten items. ... then lock the document, to test it the line moves. ... do I fix this. ... Prev by Date: ...
    (microsoft.public.access.forms)
  • Re: Atomicity Question
    ... > preferred route) always access shared data from within a lock. ... Hmm... ... I'm beginning to see why you prefer to always use locking. ... Prev by Date: ...
    (microsoft.public.dotnet.framework)