Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Tagged as

32-Bit or 64-bit OS ??

, 20 Sep 2010
Rate this:
Please Sign up or sign in to vote.
To check 64Bit Operating system in VB.NET,Public Shared Function is64BitOPeratinSystem() As Boolean Return (Marshal.SizeOf(IntPtr.Zero) = 8)End Function
To check 64Bit Operating system in VB.NET,
 
Public Shared Function is64BitOPeratinSystem() As Boolean
    Return (Marshal.SizeOf(IntPtr.Zero) = 8)
End Function

License

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

Share

About the Author

a_pess
Engineer
Egypt Egypt
Oil & Gas Engineer
C# & VB.net
Coding For Fun Only

Comments and Discussions

 
GeneralReason for my vote of 1 This will always return 4 and the re... PinmemberMember 740216615-Aug-11 23:23 
GeneralReason for my vote of 1 wrong - man test it before posting Pinmemberjohannesnestler14-Oct-10 3:56 
GeneralReason for my vote of 1 False PinmemberToli Cuturicu11-Oct-10 11:38 
GeneralThis will always return 4! even if it is compiled in x64 mod... PinmemberGPUToaster21-Sep-10 0:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web03 | 2.8.140827.1 | Last Updated 20 Sep 2010
Article Copyright 2010 by a_pess
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid