> -----Original Message-----
> From: Andreas Pflug [mailto:pgadmin@pse-consulting.de]
> Sent: 20 August 2004 13:21
> To: Dave Page
> Cc: pgsql-hackers-win32@postgresql.org
> Subject: Re: [pgsql-hackers-win32] InitDB Failure on install
>
> Dave Page wrote:
>
> >
> >
> > OK, thanks. I committed a patch for this last night BTW. One thing
> > that struck me this morning though - the patch checks that
> > %SESSIONNAME% == "Console" (as oppsed to something like
> ICA-tcp#45 as
> > you might see on a Citrix session); does the word "Console" get
> > localised on non-English versions of Windows? Can someone
> check this for me please?
>
> The official way to detect a terminal service session
> according to MSDN is
>
> bool IsRemoteSession() { return GetSystemMetrics(SM_REMOTESESSION); }
Hmm, too much time playing with Citrix recently! I'll change it shortly
- thanks.
Regards, Dave