Re: Squid CygWin enhancement

From: Robert Collins <robert.collins@dont-contact.us>
Date: Fri, 27 Apr 2001 18:57:11 +1000

----- Original Message -----
From: "Guido Serassio" <serassio@libero.it>
To: <squid-dev@squid-cache.org>
Sent: Friday, April 27, 2001 5:58 PM
Subject: Re: Squid CygWin enhancement

> Hi Robert,
>
> Il 01.41 27/04/2001 Robert Collins ha scritto:
>
>
>
> >
> >These look similar
> >
> >#define VOS__BASE 0
> >#define VOS__WINDOWS16 1
> >#define VOS__PM16 2
> >#define VOS__PM32 3
> >#define VOS__WINDOWS32 4
> >
> >(from winver.h).
> >
> >We should not use arbitrary defines - while the current os's won't
> >change, future maintainers won't know how to ID the next version..
> >
> >Rob
>
> I think that there are some misunderstanding about this question:
>
> The GetOSVersion function on win32.c gets the OS Version id from the
> GetVersion system call, this id is a bit flag DWord, so after checking
the
> right bits, it returns an arbitrary value that I defined for my
> convenience. After this, in the WIN32_Subsystem_Init function,
> WIN32_OS_version is set to the returned value.
> The problem is that all the value that I need are not available on
winver.h:
> There are only Win16 and Win32 value (PM group is for OS/2
Presentation
> Manager), while I need at least 3 value for 9X, NT and W2K, because
they
> are very different in the networking section.
>
> Guido
>

Ah ok. Still - I wonder what msdn has to say on Identifying the OS ? (I
know what you're doing works but I'm still worried about _us_ having to
define the constants).

Rob
Received on Fri Apr 27 2001 - 02:56:08 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:50 MST