Hi,

I need to determine which version of my driver to load depending of if it is
a 32-bit or 64 bit OS. What's a reliable way to determine if I am running on
some x64 version of windows. I could always check the OS version with
GetVersionEx but that doesn't seem reliable.

Thanks
Hua-Ying

RE: determine x64 by pavel_a

pavel_a
Mon Feb 06 16:31:23 CST 2006

http://www.microsoft.com/whdc/driver/install/32-64bit_install.mspx
http://www.microsoft.com/whdc/driver/install/default.mspx

Regards,
--PA

"Hua-Ying Ling" wrote:
> Hi,
>
> I need to determine which version of my driver to load depending of if it is
> a 32-bit or 64 bit OS. What's a reliable way to determine if I am running on
> some x64 version of windows. I could always check the OS version with
> GetVersionEx but that doesn't seem reliable.
>
> Thanks
> Hua-Ying

Re: determine x64 by Skywing

Skywing
Mon Feb 06 16:34:28 CST 2006

GetNativeSystemInfo is a good way to tell if you are running on x64 in
general. However, there are better ways to do driver installation than
calling GetNativeSystemInfo and having two packages, you should read what
Pavel A posted for specifically driver installs.

"Hua-Ying Ling" <HuaYingLing@discussions.microsoft.com> wrote in message
news:6BD49B99-40C4-4E66-9446-5DA25EC06B0A@microsoft.com...
> Hi,
>
> I need to determine which version of my driver to load depending of if it
> is
> a 32-bit or 64 bit OS. What's a reliable way to determine if I am running
> on
> some x64 version of windows. I could always check the OS version with
> GetVersionEx but that doesn't seem reliable.
>
> Thanks
> Hua-Ying



RE: determine x64 by HuaYingLing

HuaYingLing
Mon Feb 06 16:58:41 CST 2006

Thanks for the links and suggestions, that definitely answered my question.
The problem with search engines is you need the exact terminology =( I tried
several searches and came up with zip.

Hua-Ying