홈 · 개발 참고자료

개발 참고자료

[파워빌더] Detect if running in 64bit OS

작성자
관리자
작성일
2016-10-16
조회
11477
분류
파워빌더
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)