Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-07-19 Thread Bart
On Wed, Jul 4, 2018 at 12:18 AM, Graeme Geldenhuys wrote: > I haven't had time to look at that job at work yet, but it's on my todo > list and should be done in the next week. I don't mind sharing the solution. This is the easy part: const WTS_CURRENT_SERVER_HANDLE = DWORD(0); WTS_CURRENT_S

Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-07-03 Thread Graeme Geldenhuys
On 07/02/18 13:49, Bart wrote: > @Graeme: did you manage to translate all that into pascal? > If so, do you care to share it? I haven't had time to look at that job at work yet, but it's on my todo list and should be done in the next week. I don't mind sharing the solution. Regards, Graeme --

Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-07-02 Thread Bart
On Fri, Jun 29, 2018 at 7:23 PM, Graeme Geldenhuys wrote: > Oh wow, talk about perfect timing. This afternoon I had to look into a > bug where our app also runs under a Citrix environment, and on reboot > (or new session) the settings are lost. @Graeme: did you manage to translate all that into

Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-06-29 Thread Graeme Geldenhuys
Oh wow, talk about perfect timing. This afternoon I had to look into a bug where our app also runs under a Citrix environment, and on reboot (or new session) the settings are lost. Thanks for the info Michael. G. On 06/28/18 07:49, Michael Van Canneyt wrote: >> Any thoughts on retrieving the sen

Re: [fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-06-27 Thread Michael Van Canneyt
On Thu, 28 Jun 2018, Bart wrote: Hi, One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\\AppData\Local". (%LOCALAPPDATA%=C:\Users\902617\AppData\Local) Whereas %APPDATA% points to "\\prof001\profiles\

[fpc-pascal] GetAppConfigDir(False) in a Citrix environment

2018-06-27 Thread Bart
Hi, One of my apps also runs in a Citrix environment. It does not retrieve it's settings. If appears that GetAppConfigDir(False) returns "C:\Users\\AppData\Local". (%LOCALAPPDATA%=C:\Users\902617\AppData\Local) Whereas %APPDATA% points to "\\prof001\profiles\\AppData", and this is also the locati