On Tue, 17 Dec 2013 13:21:30 -0000, Regan Heath wrote:
Is GetNativeSystemInfo your other solution? On the MSDN page for
GetNativeSystemInfo it recommends using IsWow64Process to detect if
you're running under WOW64, at which point you would then call
GetNativeSystemInfo.
I am not sure what GetNativeSystemInfo does if called from a 32 bit
exe on a 32 bit OS..
It seems to work. After all it makes sense, the native system is
actually 32 bits.
I /know/ that the code in std.internal.windows.advapi32 which
dynamically loads and calls IsWow64Process will work, because we use
it here at work for this very purpose. It's also the simplest most
direct way to answer this specific question and it's already
present,
tested and working in phobos .. so I would be inclined to use it, in
preference over GetNativeSystemInfo.
R
If after using IsWOW64Process a GetNativeSystemInfo must still be
issued like you mentioned earlier, I don't see the advantage over
calling that function directly in the first place.
Or am I missing something?