Dave Page wrote:
>
>
>
>>-----Original Message-----
>>From: pgsql-hackers-win32-owner@postgresql.org
>>[mailto:pgsql-hackers-win32-owner@postgresql.org] On Behalf
>>Of Dave Page
>>Sent: 20 August 2004 12:08
>>To: Andreas Pflug
>>Cc: pgsql-hackers-win32@postgresql.org
>>Subject: Re: [pgsql-hackers-win32] InitDB Failure on install
>>
>>
>>>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.
>
>
> Actually I'm going to leave it as it is for now - that won't work on NT4
> (even with TS afaict), and as it's possible the installer may be fixed
> for NT in the future, I'd rather not introduce any further
> incompatibilities.
No, it's NT4SP4 or later.
We definitely should require NT4SP4 or later anyway.
BTW, GetSystemMetrics would return 0 for unsupported SM_ values.
Regards,
Andreas