原文链接 -> 传送门
函数功能:
GetNativeSystemInfo 函数用于获取当前运行在 64 位操作系统的 32 位环境(WOW64)下的系统信息。如果发起该函数的调用是在一个 64 位的应用程序中,那么 GetNativeSystemInfo 函数和 GetSystemInfo 函数的结果是一样的。
API 函数原型:
注释:_Out_ 说明该参数是输出的。
void WINAPI GetNativeSystemInfo( _Out_ LPSYSTEM_INFO lpSystemInfo );
参数解析:
|
参数 |
含义 |
|
lpSystemInfo |
指向接收系统信息的 SYSTEM_INFO 结构指针 |
返回值:
该函数没有返回值。
备注:
1. 确定基于 Win32 应用程序是否运行在 64 位操作系统的 32 位环境(Wow64)下,请调用 IsWow64Process 函数。
2. 要编译使用这个函数的应用程序,定义 _WIN32_WINNT 为 x0501 或更高版本。更多信息,请参见 Windows 头文件使用。
需求:
|
Minimum supported client |
Windows XP [桌面应用程序 | Windows 商店应用程序] |
|
Minimum supported server |
Windows 2003 服务器版 [桌面应用程序 | Windows 商店应用程序] |
|
Minimum supported phone |
Windows Phone 8 |
|
Header |
WinBase.h (包含于 Windows.h) |
|
Library |
Kernel32.lib |
|
DLL |
Kernel32.dll |




