Click here to Skip to main content
Click here to Skip to main content

32-Bit or 64-bit OS ??

By , 21 Sep 2010
 

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

1. 32-Bit or 64-bit OS ??
Updated: 13 Oct 2010
In .NET 4.0, you can also use the new System.Environment.Is64BitOperatingSystem and System.Environment.Is64BitProcess
C++, C#, .NET
 
2. 32-Bit or 64-bit OS ??
Updated: 19 Sep 2010
In C++ you can use the size of a pointer to work out what sort of process you're running in:bool is_64_bit(){ return sizeof(void *) == 8;}This has got the advantage of being portable and you don't have to call any OS functions.You can do something similar in C - just return...
C++, C#, .NET
 
3. 32-Bit or 64-bit OS ??
Updated: 20 Sep 2010
To check 64Bit Operating system in VB.NET,Public Shared Function is64BitOPeratinSystem() As Boolean Return (Marshal.SizeOf(IntPtr.Zero) = 8)End Function
C++, C#, .NET
 
4. 32-Bit or 64-bit OS ??
Updated: 5 Aug 2011
Version check is wrong. It happens to work correctly only because no minor versions of Windows 5 were released after 5.1 (AFAIK... are Windows Server 2003 and Embedded XP and Media Center XP still 5.1?). A theoretical version 5.2 would fail the check. I submit the following...
C++, C#, .NET, Virtualization
 
5. 32-Bit or 64-bit OS ??
Updated: 10 Aug 2011
WOW64 is the x86 emulator that allows 32-bit Windows-based applications to run seamlessly on 64-bit Windows. WOW64 is provided with the Operating System and does not have to be explicitly enabled. A 32-bit application can detect whether it is running under WOW64 by calling the IsWow64Process[^]...
C++, C#, .NET, Virtualization
 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

GPUToaster™
Other
India India
Member
http://gputoaster.wordpress.com/about

| | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 21 Sep 2010
Article Copyright 2010 by GPUToaster™
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid