Cathy
Tue May 31 02:28:43 CDT 2005
Dear Sir,
Thanks for your answer!
The method you mention in your mail i have tried before,but
failed, i also tried as follows,failed again:
1. I write the hard code of the path
"c:\windows\system32\drivers\a.sys";
2. I use GetSystemWow64Directory () function get the system
directory,message box shows the path is "c:\windows\sysWow64",i use the
return path +"\drivers\a.sys" in DeleteFile() function;
3. I new a A.txt file in system32 folder,use the above two method
to delete the file;
All above 3 methods,GetLastError() return value shows can not find
the special file.
Any comment is welcome!
Thanks!
Cathy
<440gtx@email.com> wrote in message
news:1117513514.218813.33980@g49g2000cwa.googlegroups.com...
> By default you can not perform file operations to the system32 sub-tree
> from a 32-bit Windows application. This is because there is a file
> system redirector that reflects operations to the WOW64 directory. More
> info here:
>
>
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win64/win64
/file_system_redirector.asp
>