Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
21 Sep 2010GPUToaster™ 4 alternatives
A simple way to detect bitness of an OS Programatically. (C# and C++ examples given)
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...
To check 64Bit Operating system in VB.NET,Public Shared Function is64BitOPeratinSystem() As Boolean Return (Marshal.SizeOf(IntPtr.Zero) = 8)End Function
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...
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.