Fri Dec 10 09:51:47 2010: Request 63797 was acted upon.
Transaction: Ticket created by https://launchpad.net/~michiel-beijen
       Queue: Win32
     Subject: Win32 detected if running 32-bit perl on 64-bit windows
   Broken in: 0.40
    Severity: (no value)
       Owner: Nobody
  Requestors: m...@otyrs.org
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=63797 >


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

Reply via email to