Dear Sir,
In WinXP 64bit platform, when I use DeleteFile() function to delete
c:\windows\system32\drivers\a.sys ,it can not be deleted successfully , the
error code is 2(GetLastError ,means can not find the file, but the file is
in the folder),
I guess the system protect the system folder ,then how can I delete the
files in the system folder ?
BTW,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.
3ks!
Cathy