[파워빌더] Detect if running in 64bit OS
One way check is to check if the current Powerbuilder process is running in WOW64 mode (ie. the 32bit emulation mode).[Local external definitions]
FUNCTION long IsWow64Process(long hwnd, ref boolean Wow64Process) &
LIBRARY "KERNEL32.DLL"
FUNCTION long GetCurrentProcess () LIBRARY "KERNEL32.DLL"
[Powerscript]
boolean wow64 =false
IsWow64Process(GetCurrentProcess(), wow64)
MessageBox("Running in 64b env", wow64)
FUNCTION long IsWow64Process(long hwnd, ref boolean Wow64Process) &
LIBRARY "KERNEL32.DLL"
FUNCTION long GetCurrentProcess () LIBRARY "KERNEL32.DLL"
[Powerscript]
boolean wow64 =false
IsWow64Process(GetCurrentProcess(), wow64)
MessageBox("Running in 64b env", wow64)