I think it might be wiser to force the handle closed than to just remove the locks. I know Process Explorer (from Sysinternals) does it. Mark might explain how in one of the articles. It probably involves native NT calls, bypassing the Win32 API layer.
—John
In reply to Re: Force Windows File Lock closed?
by John M. Dlugosz
in thread Force Windows File Lock closed?
by NovasTaylor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |