コード例 #1
0
        internal static string ProcessorArchitectureIntToString(NativeMethodsShared.SYSTEM_INFO systemInfo)
        {
            switch (systemInfo.wProcessorArchitecture)
            {
                case NativeMethodsShared.PROCESSOR_ARCHITECTURE_INTEL:
                    return BuildUtilities.ProcessorArchitecture.X86;

                case NativeMethodsShared.PROCESSOR_ARCHITECTURE_AMD64:
                    return BuildUtilities.ProcessorArchitecture.AMD64;

                case NativeMethodsShared.PROCESSOR_ARCHITECTURE_IA64:
                    return BuildUtilities.ProcessorArchitecture.IA64;

                case NativeMethodsShared.PROCESSOR_ARCHITECTURE_ARM:
                    return BuildUtilities.ProcessorArchitecture.ARM;

                // unknown architecture? return null
                default:
                    return null;
            }
        }