I am trying to open a volume using CreateFile. Code i am using is this.
CreateFile( TEXT("\\\\.\\c:"),
GENERIC_READ | GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_EXISTING,
0,
NULL);
I took this sample from this link. Walk through NTFS journal windows. It was failing for my code earlier. So i tried above snippet from above link. This too failed with same error. I read about it a lot but could not get any solution. So can someone please guide on how to get a volume handle correctly.
Aucun commentaire:
Enregistrer un commentaire