Last active
November 9, 2015 11:00
-
-
Save 0xF6/70a3f31fd73e78b94f3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static boolean is64bitProcess() | |
{ | |
String wow64_kernel = System.getenv("systemroot") + "\\SysWOW64\\kernel32.dll"; | |
if (new File(wow64_kernel).exists()) | |
{ | |
try | |
{ | |
System.load(wow64_kernel); | |
} | |
catch (UnsatisfiedLinkError e) | |
{ | |
return true; | |
} | |
} | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment