RE: [GD-General] A portable preferences library
Brought to you by:
vexxed72
From: Tom S. <to...@pi...> - 2003-12-05 19:32:11
|
> -----Original Message----- > Behalf Of J C Lawrence > > Maybe I'm hard-core, but I think everything an application needs to > > operate, short of the absolutely guaranteed resources of > the operating > > system, should be packaged with the application -- and totally > > portable. > > In the case of user preferences this violates the model of > segmented access rights and patterns as it requires that > users have write access to the installation point the > application. Maybe one that wants to maintain application controlled config selection ala BF1942 for instance, yet not violate the write access of non-admin accounts should use SHGetFolderLocation( CSIDL_COMMON_APPDATA ), CSIDL_COMMON_DOCUMENTS, or whatever is equivalent to 'C:\Documents and Settings\All Users\' in other OSs. Tom |