Hii
I wanna read the file(drivetable.txt ) and write into another file.It is content of System Volume Information folder.
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
(This is my third attempt at answering this, sometimes it’s better to delete
a response than hit send…)
All of your posts are user mode API related and nothing to do with file
system development. I suggest you direct your questions to another list
that’s more appropriate for these queries because you’re likely to not get
much of a response here. You’ll probably have more luck in one of the
microsoft.public.* groups.
-scott
–
Scott Noone
Consulting Associate (and OSR List Slave)
OSR Open Systems Resources, Inc.
http://www.osronline.com
wrote in message news:xxxxx@ntfsd…
> Hii
>
> I wanna read the file(drivetable.txt ) and write into another file.It is
> content of System Volume Information folder.
>
>
> 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
> ----------------------
>