Re: InitDB Failure on install - Mailing list pgsql-hackers-win32

From Andreas Pflug
Subject Re: InitDB Failure on install
Date
Msg-id 4125ECB0.7060506@pse-consulting.de
Whole thread Raw
In response to Re: InitDB Failure on install  ("Dave Page" <dpage@vale-housing.co.uk>)
List pgsql-hackers-win32
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); }

Regards,
Andreas

pgsql-hackers-win32 by date:

Previous
From: "Dave Page"
Date:
Subject: Re: InitDB Failure on install
Next
From: Andreas Pflug
Date:
Subject: Re: InitDB Failure on install