how to detect OS architecture?

Regan Heath regan at netmail.co.nz
Wed Dec 18 05:20:45 PST 2013


On Wed, 18 Dec 2013 04:22:23 -0000, Hugo Florentino <hugo at acdam.cu> wrote:

> On Tue, 17 Dec 2013 15:13:18 +0100, Gary Willoughby wrote:
>>
>> Make sure you handle if users have a 32bit OS installed on a
>> 64bit PC.
>
> As a matter of fact that was the actual configuration in the system I  
> wrote the app.
> I am now with a friend with the same configuration, and it also seems to  
> be working.
> At work I use Windows 7 x86_64 and it also works.

It works because the SYSTEM_INFO member "wProcessorArchitecture" is  
defined to be "The processor architecture of the installed operating  
system" .. note, *installed operating system*, not processor architecture.

R

-- 
Using Opera's revolutionary email client: http://www.opera.com/mail/


More information about the Digitalmars-d-learn mailing list