proper detection of a process 64/32 bit mode