[DUG] Help Detecting Windows Version
Alan Rose
Alan.Rose at trimble.co.nz
Mon Dec 13 15:20:14 NZDT 2010
Sadly by the time they release Delphi 64 bit I will have been fully
converted into a dot net programmer and using VS. Sad but true in my
case.
>
> Of course, should we ever get a 64-bit compiler, you can be
> pretty damned sure you are running on 64-bit Windows if/when
> you are compiling to a 64-bit target, so, for a 64-bitness
> check, if you don't want to bother with
> Get[Native]SystemInfo:
>
> class function TOSInfo.Is64Bit: Boolean
> begin
> {$if CompileTarget=WIN64} // Purely speculative on my part ...
> result := TRUE;
> {$else}
> result := IsWOW64;
> {$endif}
> end;
>
More information about the Delphi
mailing list