天天看点

程序判断Windows系统是32bit还是64bit

http://msdn.microsoft.com/en-us/library/ms684139%28VS.85%29.aspx

或者是通过读取注册表

HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Session Manager/Environment

键值 PROCESSOR_ARCHITECTURE可以判断出来