cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AniDavid
Level 2

DeleteFile in XP x64 platform

I am trying to delete a .dll file in the system directory (c:\windows\system32) using the DeleteFile function which returns 0x80070004 (ISERR_FILE_NOT_FOUND). Needless to say that the file is still there.
I tried FindFile function which did not find it.
I also wrote a C++ program that deletes the file, the program worked fine.

I would appreciate any help concerning this problem
Labels (1)
0 Kudos

(2) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

If your C++ program was compiled as a 64-bit executable, the problem is likely the filesystem redirection of 32-bit apps to c:\windows\syswow64. You can use the Disable() and Enable() functions to temporarily prevent this redirection.
0 Kudos
AniDavid
Level 2

Thank you very much !!!
It seems to be working!!
0 Kudos