Ejemplo n.º 1
0
        internal static ProcessorArchitecture GetProcessorArchitecture()
        {
            PsUtils.NativeMethods.SYSTEM_INFO lpSystemInfo = new PsUtils.NativeMethods.SYSTEM_INFO();
            PsUtils.NativeMethods.GetSystemInfo(ref lpSystemInfo);
            switch (lpSystemInfo.wProcessorArchitecture)
            {
            case 0:
                return(ProcessorArchitecture.X86);

            case 6:
                return(ProcessorArchitecture.IA64);

            case 9:
                return(ProcessorArchitecture.Amd64);

            default:
                return(ProcessorArchitecture.None);
            }
        }
Ejemplo n.º 2
0
 internal static extern void GetSystemInfo(ref PsUtils.NativeMethods.SYSTEM_INFO lpSystemInfo);