Resetting IoReleaseRemoveLockAndWait

I have a need for something where the remove locks will work nicely. However, I need to reset it at some pointer after calling IoReleaseRemoveLockAndWait so that it starts working again. Is that safely done by simply Initializing it with IoInitializeRemoveLock again?

Yes

d

debt from my phone


From: xxxxx@terabyteunlimited.com
Sent: 2/11/2012 10:38 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Resetting IoReleaseRemoveLockAndWait

I have a need for something where the remove locks will work nicely. However, I need to reset it at some pointer after calling IoReleaseRemoveLockAndWait so that it starts working again. Is that safely done by simply Initializing it with IoInitializeRemoveLock again?


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars 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

Verifier doesn’t like it, even though what it doesn’t like is fine in this case. I may have to roll my own anyway since I need to build for NT4 and I don’t think it has the remove locks? It shouldn’t be too hard, just wondering what I should use to wait? An event, or KeStallExecutionThread and just loop. The place it would wait is in a ioctl from user mode that is hardly every called and all waiting ought to be done within a second.