The way to view the source files in Program Files is not to write there (and to do this, open files for reading only, as Nikita points out). VirtualStore is not used, but to fix application problems. Such problems are caused, for example, by broken applications written for old single-user Windows, when the current day of Windows (with NT) can have several sessions at the same time from different users.
If an application wants to modify data files common to all users, it must save the files in the All Users Profile. If this is user data, it can store data in the Application Data folder in the user profile. In the application data, you are still left with the option if you want the data to be roaming or local.
The paths to these folders are different in different versions of Windows. Windows Installer has properties set for paths. Applications have many interfaces that they can use. See Working with Famous Folders in Applications and SHGetKnownFolderPath for a single interface.
In addition, access to program files is located behind the UAC . You should read on it to get all the details.
kohtala
source share