Hi Jimmy,
Thanks for the explanation.
Do you know if there is any way to obtain the C:\Users\Public\ folder
location through the SpecialFolder APIs or is this just something specific
to Vista that doesn't have an associated API?
Either way I think the best solution for my company's application is to
simply store the data in a user specific location (for some reason we store
information in three different places (local, roaming, shared) - I'm not the
one who designed it that way!) as I don't think there is any real need to
make the data available machine wide other than it would have been "nice" to
share between users on the same machine.
Regards,
Wayne.
"Jimmy Brush" <JimmyBrush@discussions.microsoft.com> wrote in message
news:88E25EE5-6FCF-46DA-A697-B33E2885D9DA@microsoft.com...
> Hello,
>
> Vista is set up such that files saved from one user's account cannot be
> modified from another user's account. This enforces isolation between one
> user account and another, as well as protects settings/files that affect
> the state of the entire system.
>
> Your program should indeed install whatever machine-wide state it needs in
> ProgramData at install time - this folder is shared between all user
> accounts; however, it is a read-only type of shared
. Administrator
> privileges are needed to modify these files if the current user did not
> create them because they affect the entire computer, not just the current
> user account.
>
> In accordance with this policy, the security on the ProgramData folder is
> as follows:
>
> System: Full Control over files & folders
> Administrators: Full Control over files & folders
> Creator/Owner: Full Control over files & folders
> Users: Read Only for files, but can create new folders and files
>
> What this accomplishes is that it allows any user to read and create a
> folder/file anywhere inside the ProgramData folder, but the user can only
> modify the files that were created from their user account; they cannot
> modify files created from another user account.
>
> The only exception that I know of to this policy is the c:\users\public
> folder, which is designed to allow users to store documents and such that
> they want to be world read/writable.
>
>
> --
> - JB
> Microsoft MVP - Windows Shell/User
>
> Windows Vista Support Faq
> http://www.jimmah.com/vista/