Support Forums

Full Version: [VB.NET] Determine If 32 Or 64 Bit Operating System.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Code:
' Generate CPU Bit
    Public Shared Function GenerateArchitecture()
        If Registry.LocalMachine.OpenSubKey("Hardware\Description\System\CentralProcessor\0").GetValue("Identifier").ToString.Contains("x86") Then : Return "32"
        Else : Return "64" : End If
    End Function
Thanks for sharing. Very simple but useful none the less.
Very nice. Quite simple, but helpful for people none the less.
Great share. I'm going to use this in my next project. Smile
It's going to be a cryptor, if It's 32bit then inject it into notepad if 64 inject into vbw.exe!
Good share, can be used with a variety of programs Tongue
(09-29-2010, 10:18 AM)Fitz- Wrote: [ -> ]Great share. I'm going to use this in my next project. Smile
It's going to be a cryptor, if It's 32bit then inject it into notepad if 64 inject into vbw.exe!

It's vbc.exe dude.. Your project is gonna fail if you put vbw.exe
Just a heads up!
Nice, might use this when I start up. Tongue
Very nice code, simple, but you can also go into "System" to determine 32-bit(x84) or 64-bit(x64) OS.
Yeah I have one way of doing this but this was probably easier.
Thanks for sharing this code with us. I really appreciate it and i hope that others will as well
Pages: 1 2