[rt.cpan.org #57172] Windows 2008 Server version detection by GetOSVersion()

[email protected] ("Jan Dubois via RT")
Newsgroups perl.libwin32
Message-ID <[email protected]>
Wed Dec 08 15:25:31 2010: Request 57172 was acted upon.
Transaction: Correspondence added by JDB
       Queue: Win32
     Subject: Windows 2008 Server version detection by GetOSVersion()
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: [email protected]
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=57172 >


On Mon May 03 10:52:19 2010, https://launchpad.net/~michiel-beijen wrote:
> GetOSVersion() returns "Win7" when running on Windows 2008 R2.
> 
> According to http://msdn.microsoft.com/en-us/library/ms724833(VS.85).aspx
> they both return dwMajorVersion 6 and dwMinorVersion 1, the only
> difference is that for Win7 OSVERSIONINFOEX.wProductType =
> VER_NT_WORKSTATION and for Win2008SP1 OSVERSIONINFOEX.wProductType !=
> VER_NT_WORKSTATION
> 
> I understand that adding this kind of 'smartness' into GetOSVersion is
> not desired, but I don't really see an alternative. Otherwise, I guess
> this should at least be added to the docs.

A fix has been committed to the repo in

    https://code.google.com/p/libwin32/source/detail?r=516
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.