is there code to detect 64 platform e.g.
if X86 then ...
if X64 then ...
is there code to detect 64 platform e.g.
if X86 then ...
if X64 then ...
Yes.
Use
if IsWin64 then
// Do sth
else
// Do sth else
There is also a Is64BitInstallMode function. Indeed, a 32-bit setup can run on a 64-bit OS. Hence, Is64BitInstallMode implies IsWin64, but IsWin64 does not imply Is64BitInstallMode.