Thread Rating:
  • 2 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[VB.NET] Determine If 32 Or 64 Bit Operating System.
#1
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
Reply
#2
Thanks for sharing. Very simple but useful none the less.
Reply
#3
Very nice. Quite simple, but helpful for people none the less.
Reply
#4
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!
Reply
#5
Good share, can be used with a variety of programs Tongue
Reply
#6
(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!
Reply
#7
Nice, might use this when I start up. Tongue
Nearly four years and don't regret a single day.
Reply
#8
Very nice code, simple, but you can also go into "System" to determine 32-bit(x84) or 64-bit(x64) OS.
Reply
#9
Yeah I have one way of doing this but this was probably easier.
[Image: t5BWm.png]
Reply
#10
Thanks for sharing this code with us. I really appreciate it and i hope that others will as well
[Image: banner.gif]
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How To make an advanced Operating System in Visual Basic 2010 ? Mohamed Samir 9 11,434 01-15-2013, 09:30 PM
Last Post: Resistance
  Process Detective (32 & 64 bit binaries) AceInfinity 3 1,489 03-23-2012, 12:09 PM
Last Post: AceInfinity
  [VB.NET] System.Management Version 2.0.0.0 without Import Make App [SRC] Imports System.Net 0 2,004 05-13-2011, 11:32 AM
Last Post: Imports System.Net
  Crack Me Litle bit advanced. lil-wayneee 6 2,469 03-11-2011, 10:37 PM
Last Post: GrammarPhreak
  [VB.NET] Get Operating System. To Two Letter String (W7/VS/XP) wchar_t 2 6,521 01-17-2011, 01:37 PM
Last Post: JohnRonder

Forum Jump:


Users browsing this thread: 1 Guest(s)