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."