티스토리 뷰

참고 :

IsWow64Process function

SYSTEM_INFO structure

GetSystemInfo function

GetNativeSystemInfo function


// 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
*/


공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/02   »
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28
글 보관함