Hi,
I am trying to modify a filter driver so that it writes logs to a log file.
I open the log file in DriverEntry function and close it in Unload function.
I try to write to the log file in a function that runs as a thread created by ExInitializeWorkItem.It seems to hang in ZwWriteFile - deadlock or something else.
What is the reason of this hang and how can i overcome it?
Thanks and Regards
Amol
Yahoo! DSL Something to write home about. Just $16.99/mo. or less
Sounds like a reentrancy problem by your filter. You can raise some flags to make sure the file you write is not bothered by your filter. Checkout the file system FAQ:
How do I detect reentrancy back into my filter driver?
http://www.osronline.com/article.cfm?article=17#Q36
/Daniel
“amol surati” wrote in message news:xxxxx@ntdev…
Hi,
I am trying to modify a filter driver so that it writes logs to a log file.
I open the log file in DriverEntry function and close it in Unload function.
I try to write to the log file in a function that runs as a thread created by ExInitializeWorkItem.It seems to hang in ZwWriteFile - deadlock or something else.
What is the reason of this hang and how can i overcome it?
Thanks and Regards
Amol
------------------------------------------------------------------------------
Yahoo! DSL Something to write home about. Just $16.99/mo. or less