Hii
I wanna read the file(drivetable.txt) and write into another file.It is content of System Volume Information folder.
Code:
HANDLE hFile = CreateFile(
L"C:\\System Volume Information\\_restore{D66B84B7-13C4-40ED-9116-31C56638FDB0}\\drivetable.txt",
GENERIC_READ, // open for writing
0, // do not share
NULL, // default security
OPEN_EXISTING, // overwrite existing
FILE_ATTRIBUTE_SYSTEM , // file type
NULL); // no attr. template
if (hFile == INVALID_HANDLE_VALUE)
{
printf("Could not open file (error %d)\n", GetLastError());
goto lLabel;
}
But the given code is not working....
How I've to set the permissions ...to read that file ?
----------------------
Thanking you
----------------------