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?
source
share