Hi,
I want to unlock the drive programmatically ? is there an api
function
related to it. For instance, when i run chkdsk with /F parameter, i
get "drive in use" error . I want to unlock drive programmatically
and
execute chkdsk
Thank you in advance,
Sony.
Ben Voigt [C++ MVP] - 27 Sep 2007 18:26 GMT
> Hi,
> I want to unlock the drive programmatically ? is there an api
[quoted text clipped - 3 lines]
> and
> execute chkdsk
That function is built into chkdsk, with the limitation that the system and
pagefile drives cannot be exclusively locked. There's not any way to force
Windows to close those files, at least not in desktop editions of Windows.
> Thank you in advance,
>
> Sony.