 |
| How to check whether the system is 32-bit or 64-bit |
User rating: 0/10 (0 votes) | | |
|
 |
 |
| Before you begin: |
 |
| 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
|
 |
User rating: 0/10 (0 votes) | | | 447 bytes Created: 2012-02-07 10:35:08 Modified: 2012-02-07 10:47:27 Visits in 7 days: 45 |
|
 |
 |
| Listed functions: |
 |
|
 |
 |
| My comment: |
 |
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. |
 |
 |
| Word Index links for this example: |
 |
|
|
 |
 |
| Translate this page: |
 |
|