What good place to store data files in Win7 that can be accessed and managed by multiple user accounts?

So, I worked on a system that includes several parts, such as a standard user-mode application, a plug-in for Internet Explorer, and a Windows service. I need to have access and / or manage the same set of data files from all of these parts, which can be run under different user accounts. And I seem to be a little confused in the best place to store this data.

I am currently using the directory in the "All Users" profile. The only problem is that SHFileOperation does not seem to work to remove files from this directory when called from a Windows service that runs under the Local System account; I get a file that is not found. I understand that SHFileOperation is being replaced by IFileOperation with Vista, and I updated this code to use IFileOperation, and it really works here, but I wonder if I might run into other problems in the future.

So the question is, is there a "better" place to store these data files on Win7 than in the "All Users" profile?

+3
source share
1 answer

ProgramData - . ( ) Windows 7 C:\ProgramData. UAC, , . . % ProgramData% .., , - CSIDL_COMMON_APPDATA, , System.Environment.SpecialFolders - .

, , AllUsers .

+2

Source: https://habr.com/ru/post/1759852/


All Articles