A place for shared ini-file

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)
 
J

Jimmy Brush

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
 
T

Tony Hoyle

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
 
A

Andrey Smolev

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top