Skip Menu |

This queue is for tickets about the Win32 CPAN distribution.

Report information
The Basics
Id: 63797
Status: resolved
Priority: 0/
Queue: Win32

People
Owner: Nobody in particular
Requestors: mb [...] otyrs.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.40
Fixed in: (no value)



Subject: Win32 detected if running 32-bit perl on 64-bit windows
If you run a 32-bit perl on a 64-bit platform, either calling GetOSVersion() in scalar context or the new GetOSDisplayName() call (nice) return 32-bit. For instance for a 2008R2 server (which is 64-bit only) GetOSDisplayName() will return "Windows Server 2008 R2 Standard (32-bit)" See the following info from http://msdn.microsoft.com/en-us/library/ms724833%28VS.85%29.aspx "To determine whether a Win32-based application is running on WOW64, call the IsWow64Process function. To determine whether the system is running a 64-bit version of Windows, call the GetNativeSystemInfo function."
From: mb [...] otrs.org
On Fri Dec 10 09:51:47 2010, https://launchpad.net/~michiel-beijen wrote: Show quoted text
> If you run a 32-bit perl on a 64-bit platform, either calling > GetOSVersion() in scalar context or the new GetOSDisplayName() call > (nice) return 32-bit.
I meant of course, calling GetOSVersion() in *list* context.
Fixed in https://code.google.com/p/libwin32/source/detail?r=519 Released (with other Win32::GetOSDisplayName() fixes) in Win32-0.41.