winapiwindows-vistafile-copyingvirtualstore

copyfile is copying into VirtualStore folder?


I have created one application on Vista, that is running with admin privileges.

I am trying to copy one file to ProgramData\Application\ folder.

But instead to copying there its copying at location c:\Users\XXX\AppData\Local\VirtualStore\ProgramData\Application\

I dont want this file to get copied into Virtul store.

Any suggestion , how can I overcome this issue?

I am using CopyFile API.


Solution

  • Add a Vista manifest to your application to disable the FS virtualization