Sunday, August 2, 2009

How to determine if the application is running on a x64 operating system through C# code?

Use the GetSystemInfo API call. The resultant SYSTEM_INFO struct will have a wProcessorArchitecture member. If it is PROCESSOR_ARCHITECTURE_AMD64 or PROCESSOR_ARCHITECTURE_INTEL, you are running on an x64 processor.


No comments:

Post a Comment