Hi Larry;
Its safe to leave the 64 bit option turned "ON" all the time - however, the 64 setting can lead to misleading memory mapping results when running in a 32 bit world.
---------------------------------------------------------------------------
This is how its coded in my STD Foundation Classes ...
IF go_ac.of_is_64bit_os ( ) = TRUE THEN
isr_memory_status.si_length = 64 // Set length for 32bit
else
isr_memory_status.si_length = 32 // Set STR length
END IF
ib_rc = GlobalMemoryStatusEx ( isr_memory_status ) // Get device data
-------------------------------------------------------------------------------------------
This is how the STD framework knows if your a 64 bit application or not ...
IsWOW64process ( GetCurrentProcess ( ) , ib_64bit_os_found) / Load 64bit indicator
FUNCTION Boolean | IsWow64Process ( ulong hProcess, Ref boolean Wow64Process) LIBRARY "KERNEL32.dll" |
FUNCTION ulong | GetCurrentProcess ( ) LIBRARY "KERNEL32.dll" |
Note: The "of_is_64bit_os" method just returns the "ib_64bit_os_found" setting.
HTH
Regards ... Chris