I am writing a small app which uses CreateFile to get handles to the volumes present on a system. The access mode specified is GENERIC_ALL and the share mode is FILE_SHARE_WRITE. The call to CreateFile is successful for all volumes barring the system volume. I googled a lot but there is no clear information about whether its possible for me to get an exclusive lock on system volume. The OS I am working on is Windows 2008 Server. Any help will be greatly appreciated.
Thanks,
Prashant