I'm writing permanent file deletion tool and accessing raw disk clusters. Since Windows Vista writing into raw disk is a bit more complicated.
I have tried on my external data device first and worked fine, however one of the steps was dismounting of the volume, not sure if it is a good idea to dismount main volume where the Windows are.
Want to ask that is possible consequences and if it safe/unsafe/very unsafe.
EDIT: for dismounting I used this API.
Also here I have found this written:
A dismounted volume has the following properties:
There are no open files. The operating system does detect the volume.
If OS detect the volume, so only OS should be able to access files.