[rt.cpan.org #57172] Windows 2008 Server version detection by GetOSVersion()
[email protected] ("https://launchpad.net/~michiel-beijen via RT")
| Newsgroups | perl.libwin32 |
|---|---|
| Message-ID | <[email protected]> |
Mon May 03 10:52:19 2010: Request 57172 was acted upon.
Transaction: Ticket created by https://launchpad.net/~michiel-beijen
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 >
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.