Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ 什么';判断Windows Server 2003 SP 1是32位还是64位的正确方法是什么?_C++_C_Architecture_32bit 64bit - Fatal编程技术网

C++ 什么';判断Windows Server 2003 SP 1是32位还是64位的正确方法是什么?

C++ 什么';判断Windows Server 2003 SP 1是32位还是64位的正确方法是什么?,c++,c,architecture,32bit-64bit,C++,C,Architecture,32bit 64bit,我正在寻找一种方法来确定上述情况。我真的很难找到它,谷歌不知何故也帮不了我多少忙 谢谢。您需要API调用。您要查找的信息将在wProcessorArchitecture成员的SYSTEM\u INFO结构中返回。您想在编译时或运行时找到它吗?我正在使用的是一个虚拟机,应该是更简单的方法,对吗?“我的电脑”-右键单击->属性,您将看到version@MitchWheat我确信没有人要求使用WindowsServer2003SP1,所以请享受您的美食:)不,它是完全仿效的。只有GetNativeSy

我正在寻找一种方法来确定上述情况。我真的很难找到它,谷歌不知何故也帮不了我多少忙


谢谢。

您需要API调用。您要查找的信息将在
wProcessorArchitecture
成员的
SYSTEM\u INFO
结构中返回。

您想在编译时或运行时找到它吗?我正在使用的是一个虚拟机,应该是更简单的方法,对吗?“我的电脑”-右键单击->属性,您将看到version@MitchWheat我确信没有人要求使用WindowsServer2003SP1,所以请享受您的美食:)不,它是完全仿效的。只有GetNativeSystemInfo()说的是实话。@HansPassant啊,会更新的,谢谢。