- Code: Select all Expand view RUN
...
IF FW_ISWOW64()
?"The process is running under WOW64."
ELSE
?"The process is not running under WOW64."
ENDIF
...
...
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
#include <tchar.h>
typedef BOOL (WINAPI *LPFN_ISWOW64PROCESS) (HANDLE, PBOOL);
LPFN_ISWOW64PROCESS fnIsWow64Process;
HB_FUNC( FW_ISWOW64 )
{
BOOL bIsWow64 = FALSE;
fnIsWow64Process = (LPFN_ISWOW64PROCESS) GetProcAddress(GetModuleHandle(TEXT("kernel32")),"IsWow64Process");
if(NULL != fnIsWow64Process)
{
if (!fnIsWow64Process(GetCurrentProcess(),&bIsWow64))
{
//handle error
}
}
hb_retl( bIsWow64 );
}
#pragma ENDDUMP