private static ProcessorArchitecture GetNativeArchitecture()
        {
            NativeStructs.SYSTEM_INFO sysInfo = new NativeStructs.SYSTEM_INFO();
            NativeMethods.GetNativeSystemInfo(out sysInfo);
            ProcessorArchitecture architecture = Convert(sysInfo.wProcessorArchitecture);

            return(architecture);
        }
Example #2
0
 internal static extern void GetNativeSystemInfo(ref NativeStructs.SYSTEM_INFO lpSystemInfo);