コード例 #1
0
 public string PrintIf64BitProcessor()
 {
     if (InfoHardware.Is64BitProcessor())
     {
         return(rl.GetString("InfoPlatform_ProcessorIs64Bit/Text"));
     }
     else
     {
         return(rl.GetString("InfoPlatform_ProcessorIsNot64Bit/Text"));
     }
 }
コード例 #2
0
        public string PrintProcessorArchitecture()
        {
            string baseString = rl.GetString("InfoPlatform_ProcessorArchitecture/Text");

            switch (InfoHardware.GetProcessorArchitecture())
            {
            case ProcessorArchitecture.X86:
                return(baseString + rl.GetString("InfoPlatform_ProcessorArchitecture_X86/Text"));

            case ProcessorArchitecture.X64:
                return(baseString + rl.GetString("InfoPlatform_ProcessorArchitecture_X64/Text"));

            case ProcessorArchitecture.Arm:
                return(baseString + rl.GetString("InfoPlatform_ProcessorArchitecture_Arm/Text"));

            case ProcessorArchitecture.Neutral:
                return(baseString + rl.GetString("InfoPlatform_ProcessorArchitecture_Neutral/Text"));

            case ProcessorArchitecture.Unknown:
                return(baseString + rl.GetString("InfoPlatform_ProcessorArchitecture_Unknown/Text"));
            }

            return(baseString + InfoHardware.GetProcessorArchitecture().ToString());
        }
コード例 #3
0
 public string PrintPhysicalMemoryMapped()
 {
     return(rl.GetString("InfoPlatform_PhysicalMemoryMapped/Text") +
            InfoHardware.GetPhysicalMemoryMapped());
 }
コード例 #4
0
 public string PrintMemoryPageSize()
 {
     return(rl.GetString("InfoPlatform_MemoryPageSize/Text") +
            InfoHardware.GetMemoryPageSize());
 }
コード例 #5
0
 public string PrintAvailableMemory()
 {
     return(rl.GetString("InfoPlatform_AvailableMemory/Text") +
            InfoHardware.GetAvailableMemory());
 }
コード例 #6
0
 public string PrintProcessorCount()
 {
     return(rl.GetString("InfoPlatform_NumberProcessorCore/Text") +
            InfoHardware.GetProcessorCount());
 }
コード例 #7
0
 public string PrintDeviceModel()
 {
     return(rl.GetString("InfoPlatform_DeviceModel/Text") +
            InfoHardware.GetDeviceModel());
 }
コード例 #8
0
 public string PrintDeviceManufacturer()
 {
     return(rl.GetString("InfoPlatform_DeviceManufacturer/Text") +
            InfoHardware.GetDeviceManufacturer());
 }
コード例 #9
0
 public string PrintMachineName()
 {
     return(rl.GetString("InfoPlatform_MachineName/Text") +
            InfoHardware.GetMachineName());
 }