File System Filter Driver Unload Problem

Hi,

I am doing the driver development. I am having problem when I call
fltunregister in preop_callback. Is there any way to execute it inside the
callback.(IRP_MJ_**).

Regards
Mansi

Yikes! FltUnregisterFilter inside a pre-op callback?

This will definitely cause a hang. There will be outstanding references on
the filter object, instance object, etc.

Try telling us why you are trying to call FltUnRegisterFilter in pre-op
callback.

Regards,

Ayush Gupta

Software Consultant & Owner,

AI Consulting

From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of mansi gupta
Sent: Wednesday, November 10, 2010 12:02 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] File System Filter Driver Unload Problem

Hi,

I am doing the driver development. I am having problem when I call
fltunregister in preop_callback. Is there any way to execute it inside the
callback.(IRP_MJ_**).

Regards

Mansi

— NTFSD is sponsored by OSR For our schedule of debugging and file system
seminars (including our new fs mini-filter seminar) visit:
http://www.osr.com/seminars To unsubscribe, visit the List Server section of
OSR Online at http://www.osronline.com/page.cfm?name=ListServer

“I am having problem when I call fltunregister in preop_callback.”

Explicitly declare and state your problem and post a stack trace.

You should not be of the belief people will understand what your
saying/thinking/trouble-shooting from two short sentences that
have zero technical details included other than a few key
nerd words…

hi,

I am extrating some information from hardware on the basis of which i want to unload it dynamically. so can you please help how i can do that. that’s why i was trying to call it in preop callback.

moreover the system hangs infinitely so there in no stack trace in windbg also.

So, your preop callback knows its time to unload, now communicate with your user mode application (you’ll write it), which will call unload on your driver and from your driver unload call FltUnregisterFilter.

My driver is boot time so is there any other way then communicating the user by which I can unload the filter driver.