BOOL bIsWow64 = FALSE;
typedef BOOL (APIENTRY *LPFN_ISWOW64PROCESS)
HMODULE module = GetModuleHandle(_T("kernel32"));
const char funcName = "IsWow64Process";
fnIsWow64Process = (LPFN_ISWOW64PROCESS)
if(NULL != fnIsWow64Process)
throw std::exception("Unknown error");
return bIsWow64 != FALSE;
printf("The process is running under WOW64.\n");
printf("The process is not running under WOW64.\n");
printf("\nPress Enter to continue...");
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.