detect X64 or X86?

sathya.cs

Active member
Joined
May 24, 2009
Messages
31
Programming Experience
Beginner
How to identify the x64 or x86 of the OS and a Process in managed code?
 
Here's a thread about detecting if the OS is x64 or x86: [RESOLVED] [2005] detect 64bit os - VBForums

VB.NET:
Dim architecture As Integer = Runtime.InteropServices.Marshal.SizeOf(GetType(IntPtr)) * 8
Select Case architecture
    Case 32
        'x86
    Case 64
        'x64
End Select
 
Back
Top