티스토리 뷰
Series
Detect Windows Architecture [C++] IsWow64Process SYSTEM_INFO GetNativeSystemInfo
More Code 2018. 6. 25. 05:37참고 :
// C++
#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <tchar.h>
using namespace std;
int _tmain(int argc, TCHAR *argv[])
{
BOOL isWow64 = false;
if (IsWow64Process(GetCurrentProcess(), &isWow64) != 0)
cout << _T("IsWow64Process : ") << isWow64 << endl;
SYSTEM_INFO si;
GetSystemInfo(&si);
cout << _T("GetSystemInfo : ") << si.wProcessorArchitecture << endl;
GetNativeSystemInfo(&si);
cout << _T("GetNativeSystemInfo : ") << si.wProcessorArchitecture << endl;
return EXIT_SUCCESS;
}
/* Output
IsWow64Process : 1
GetSystemInfo : 0
GetNativeSystemInfo : 9
*/
'Series' 카테고리의 다른 글
Set C++ Standard Option [Visual Studio] (0) | 2018.06.30 |
---|---|
Detect System Architecture [Python] platform (0) | 2018.06.25 |
Detect Windows Architecture [C++] CString.GetEnvironmentVariable (0) | 2018.06.25 |
Detect Windows Architecture [C++] GetEnvironmentVariable (0) | 2018.06.25 |
Detect Windows Architecture [C++] std::getenv (0) | 2018.06.25 |