The IsWow64Process function determines whether the specified process is running under WOW64.
DO declare
LOCAL nHandle, lWow64Process
nHandle = GetCurrentProcess()
lWow64Process = 0
IsWow64Process(nHandle, @lWow64Process)
CloseHandle(nHandle)
? IIF(lWow64Process = 0, "32-bit", "64-bit")
* end of main
PROCEDURE declare
DECLARE INTEGER GetCurrentProcess IN kernel32
DECLARE INTEGER CloseHandle IN kernel32 INTEGER hObject
DECLARE INTEGER IsWow64Process IN kernel32;
INTEGER hProcess, INTEGER @Wow64Process CloseHandle
GetCurrentProcess
IsWow64Process
Note that the minimum supported client:is Windows XP with SP2.
By calling API functions LoadLibrary and GetProcAddress it is possible to determine whether the IsWow64Process is included in the present Kernel32.dll library.
In .NET Framework 4 and on, use Environment.Is64BitOperatingSystem.
Home