Problems with AppData on Vista.
- From: "Chris Becke" <chris.becke@xxxxxxxxx>
- Date: Mon, 9 Jul 2007 12:08:13 +0200
I posted this question in win32.programmer.kernel, but subsequently realized
this NG is probably a better place:-
I have an application that needs to share data between users. To this end I
create a folder using SHGetSpecialFolderLocation with CSIDL_COMMON_APPDATA.
This returns C:\ProgramData on vista. I then create a subfolder in there for
my app.
This works for the first user.
The 2nd user that comes along and attempts to read/write the common data
files gets virtualized off to someplace inside their profile. This is
unwanted.
I actaually want to share data between users.
Have I misunderstood the purpose of c:\ProgramData ? How is it the common
appdata store if subsequent users get Access Denied / virtualized?
And, What then is the simplest way to ensure that different non-admin users
actually can access data? c:\SomeFolderOfMyOwn ? Or do I *really* need to
fiddle with ACLs on my c:\ProgramData folder? Ive avoided the security APIs
for a loong time. For a lot of that time the avoidance was pragmatic - I
needed my app to deploy and run on 95/98/ME. Getting this App vista
compatible however is turning out to be a PITA.
Whats the magic sauce to get common app data to be common on Vista?
.
- Follow-Ups:
- Re: Problems with AppData on Vista.
- From: Larry Futrell
- Re: Problems with AppData on Vista.
- Prev by Date: Re: acquiring access token for "LocalService" from application started by the admin for SHGetFolderPath()
- Next by Date: Re: Secure Sockets
- Previous by thread: Certificate Revocation
- Next by thread: Re: Problems with AppData on Vista.
- Index(es):
Relevant Pages
|