[fpc-devel] GetAppConfigFile implementation
Vincent Snijders
vsnijders at vodafonevast.nl
Sat Dec 20 11:53:19 CET 2008
Felipe Monteiro de Carvalho schreef:
> Hello,
>
> GetAppConfigFile in win32 uses CSIDL_LOCAL_APPDATA to be implemented.
>
> I did some research, and I think that CSIDL_APPDATA is a better choice:
>
> http://blogs.msdn.com/oldnewthing/archive/2005/07/01/434647.aspx
>
> They are very similar, but the LOCAL version is a bit more specifc,
> and the non-LOCAL has the advantage of a lower requirement. It
> requires shell 4.0 while the other requires shell 5.0
>
> Careful that both are for local settings, the name just isn't very intuitive.
I thought that local version is not stored on the network and is not
available in the roaming profile. Putting a 100 MB Lazarus exe in the
CSIDL_APPDATA is not a good thing, it ruins startup time (and shutdown
time to copy the 100 MB to the network). So, if this change is made, I
will probably put windows specific code in Lazarus to prevent that.
Vincent
More information about the fpc-devel
mailing list