private static ProcessorArchitecture GetNativeArchitecture() { NativeStructs.SYSTEM_INFO sysInfo = new NativeStructs.SYSTEM_INFO(); NativeMethods.GetNativeSystemInfo(out sysInfo); ProcessorArchitecture architecture = Convert(sysInfo.wProcessorArchitecture); return(architecture); }
internal static extern void GetNativeSystemInfo(ref NativeStructs.SYSTEM_INFO lpSystemInfo);