A place for shared ini-file

  • Thread starter Thread starter Andrey Smolev
  • Start date Start date
A

Andrey Smolev

Hello, All!

We have a problem with the default Vista security settings. We need a place
to save our ini file with setting and we want to allow any user to write to
this file. Previously we could use "C:\Documents and Settings\All
Users\Application Data" folder for this purpose but now even an
Administrator cannot even open this folder and folder
"C:\Users\Default\AppData" is read only for regular user. Could you give us
advice for any place where we can store our settings on Vista sysem?

Thanks.

With best regards, Andrey Smolev. E-mail: (e-mail address removed)
 
C:\ProgramData\

I believe this is what you are looking for ... at first glance at the
security settings it doesn't appear to allow normal users write access, but
if you try it out or look in the advanced screens it works fine.

- JB
 
Jimmy said:
C:\ProgramData\

I believe this is what you are looking for ... at first glance at the
security settings it doesn't appear to allow normal users write access,
but if you try it out or look in the advanced screens it works fine.

Don't hardcode it though... non-US versions probably won't call it that
(I asumme the 'All Users' path wasn't hardcoded...).

You get it by querying for CSIDL_COMMON_APPDATA with SHGetFolderPath.

OTOH looking at it you should *already* be using that since it
corresponds directly to the All Users\Application Data directory that
exists on XP.

I really hope the OP wasn't hardcoding that path...

Tony
 
Thanks, guys!!!
This information is very useful for us!

With best regards, Andrey Smolev. E-mail: (e-mail address removed)
 
Back
Top