Example #1
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <param name="DeviceID">DeviceID you can use GPUList to get all Installed GPUs</param>
 public Gpu(string DeviceID)
 {
     mDeviceID = DeviceID;
     wmi = new Wmi("Win32_VideoController");
     VideoArch.Add(1, "Other");
     VideoArch.Add(2, "Unknown");
     VideoArch.Add(3, "CGA");
     VideoArch.Add(4, "EGA");
     VideoArch.Add(5, "VGA");
     VideoArch.Add(6, "SVGA");
     VideoArch.Add(7, "MDA");
     VideoArch.Add(8, "HGC");
     VideoArch.Add(9, "MCGA");
     VideoArch.Add(10, "8514A");
     VideoArch.Add(11, "XGA");
     VideoArch.Add(12, "Linear Frame Buffer");
     VideoArch.Add(160, "PC-98");
 }
Example #2
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <remarks></remarks>
 public Bios()
 {
     wmi = new Wmi("Win32_BIOS");
       BIOSCharacteristicsList.Add(0, "Reserved");
       BIOSCharacteristicsList.Add(1, "Reserved");
       BIOSCharacteristicsList.Add(2, "Unknown");
       BIOSCharacteristicsList.Add(3, "BIOS Characteristics Not Supported");
       BIOSCharacteristicsList.Add(4, "ISA is supported");
       BIOSCharacteristicsList.Add(5, "MCA is supported");
       BIOSCharacteristicsList.Add(6, "EISA is supported");
       BIOSCharacteristicsList.Add(7, "PCI is supported");
       BIOSCharacteristicsList.Add(8, "PC Card (PCMCIA) is supported");
       BIOSCharacteristicsList.Add(9, "Plug and Play is supported");
       BIOSCharacteristicsList.Add(10, "APM is supported");
       BIOSCharacteristicsList.Add(11, "BIOS is Upgradable (Flash)");
       BIOSCharacteristicsList.Add(12, "BIOS shadowing is allowed");
       BIOSCharacteristicsList.Add(13, "VL-VESA is supported");
       BIOSCharacteristicsList.Add(14, "ESCD support is available");
       BIOSCharacteristicsList.Add(15, "Boot from CD is supported");
       BIOSCharacteristicsList.Add(16, "Selectable Boot is supported");
       BIOSCharacteristicsList.Add(17, "BIOS ROM is socketed");
       BIOSCharacteristicsList.Add(18, "Boot From PC Card (PCMCIA) is supported");
       BIOSCharacteristicsList.Add(19, "EDD (Enhanced Disk Drive) Specification is supported");
       BIOSCharacteristicsList.Add(20, "Int 13h - Japanese Floppy for NEC 9800 1.2mb (3.5, 1k Bytes/Sector, 360 RPM) is supported");
       BIOSCharacteristicsList.Add(21, "Int 13h - Japanese Floppy for Toshiba 1.2mb (3.5, 360 RPM) is supported");
       BIOSCharacteristicsList.Add(22, "Int 13h - 5.25 / 360 KB Floppy Services are supported");
       BIOSCharacteristicsList.Add(23, "Int 13h - 5.25 /1.2MB Floppy Services are supported");
       BIOSCharacteristicsList.Add(24, "Int 13h - 3.5 / 720 KB Floppy Services are supported");
       BIOSCharacteristicsList.Add(25, "Int 13h - 3.5 / 2.88 MB Floppy Services are supported");
       BIOSCharacteristicsList.Add(26, "Int 5h, Print Screen Service is supported");
       BIOSCharacteristicsList.Add(27, "Int 9h, 8042 Keyboard services are supported");
       BIOSCharacteristicsList.Add(28, "Int 14h, Serial Services are supported");
       BIOSCharacteristicsList.Add(29, "Int 17h, printer services are supported");
       BIOSCharacteristicsList.Add(30, "Int 10h, CGA/Mono Video Services are supported");
       BIOSCharacteristicsList.Add(31, "NEC PC-98");
       BIOSCharacteristicsList.Add(32, "ACPI is supported");
       BIOSCharacteristicsList.Add(33, "USB Legacy is supported");
       BIOSCharacteristicsList.Add(34, "AGP is supported");
       BIOSCharacteristicsList.Add(35, "I2O boot is supported");
       BIOSCharacteristicsList.Add(36, "LS-120 boot is supported");
       BIOSCharacteristicsList.Add(37, "ATAPI ZIP Drive boot is supported");
       BIOSCharacteristicsList.Add(38, "1394 boot is supported");
       BIOSCharacteristicsList.Add(39, "Smart Battery is supported");
 }
Example #3
0
 /// <summary>
 /// Initialization
 /// </summary>
 public Hdd()
 {
     wmi = new Wmi("Win32_DiskDrive");
 }
Example #4
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <param name="DeviceID">use Hdd.DrivesList</param>
 public Hdd(string DeviceID)
 {
     wmi = new Wmi("Win32_DiskDrive");
     mDeviceID = DeviceID;
 }
Example #5
0
 /// <summary>
 /// Initialization
 /// </summary>
 public Gpu()
 {
     wmi = new Wmi("Win32_VideoController");
 }
Example #6
0
        public string GetDeviceIdFromCaption(string caption)
        {
            Wmi TWmi = new Wmi("Win32_VideoController", "WHERE Caption='" + caption + "'");

            return TWmi.GetInfo("DeviceID");
        }
Example #7
0
 /// <summary>
 /// Initialization
 /// </summary>
 public Cpu()
 {
     wmi = new Wmi("Win32_Processor");
 }
Example #8
0
 /// <summary>
 /// initialization
 /// </summary>
 public CdromDrive()
 {
     wmi = new Wmi("Win32_CDROMDrive");
 }
Example #9
0
        /// <summary>
        /// Init
        /// </summary>
        /// <param name="Tag">unique identifier for the physical memory device that is represented by an instance of Win32_PhysicalMemory.</param>
        public PhysicalMemory(string Tag)
        {
            setTag(Tag);

            wmi = new Wmi("Win32_PhysicalMemory","WHERE Tag='"+Tag+"'");
        }
Example #10
0
 /// <summary>
 /// Short description of the object
 /// </summary>
 /// <param name="tag">Unique identifier for the physical memory device that is represented by an instance of Win32_PhysicalMemory. </param>
 /// <returns>Caption</returns>
 public string GetCaptionFromTag(string tag)
 {
     Wmi tmp = new Wmi("Win32_PhysicalMemory", "WHERE Tag='" + tag + "'");
     return tmp.GetInfo("Caption");
 }
Example #11
0
 /// <summary>
 /// Initialization
 /// </summary>
 /// <param name="DeviceID">Unique id use NetworkAdapter.NetworkAdapterList </param>
 public NetworkAdapter(string DeviceID)
 {
     wmi = new Wmi("Win32_NetworkAdapter", "WHERE AdapterType = 'Ethernet 802.3'");
        mDeviceID = DeviceID;
 }
Example #12
0
        public string GetDeviceIdFromCaption(string caption)
        {
            Wmi TWmi = new Wmi("Win32_NetworkAdapter", "WHERE Caption='" + caption + "'");

              return TWmi.GetInfo("DeviceID");
        }
Example #13
0
 /// <summary>
 /// Initialization
 /// </summary>
 public NetworkAdapter()
 {
     wmi = new Wmi("Win32_NetworkAdapter", "WHERE AdapterType = 'Ethernet 802.3'" );
 }
Example #14
0
        //
        /// <summary>
        /// DeviceID you can use Cpu.CpusList() to get all installed CPUs
        /// </summary>
        public Cpu(string DeviceID)
        {
            wmi = new Wmi("Win32_Processor");
              mDeviceID = DeviceID;
              ArchitectureList.Add(0,"x86");
              ArchitectureList.Add(1,"MIPS");
              ArchitectureList.Add(2,"Alpha");
              ArchitectureList.Add(3, "PowerPC");
              ArchitectureList.Add(6, "Intel Itanium Processor Family (IPF)");
              ArchitectureList.Add(9, "x64");

              /* Ability List */
              AbilityList.Add(1, "Other");
              AbilityList.Add(2, "Unknown");
              AbilityList.Add(3, "Running or Full Power");
              AbilityList.Add(4, "Warning");
              AbilityList.Add(5, "In Test");
              AbilityList.Add(6, "Not Applicable");
              AbilityList.Add(7, "Power Off");
              AbilityList.Add(8, "Off Line");
              AbilityList.Add(9, "Off Duty");
              AbilityList.Add(10, "Degraded");
              AbilityList.Add(11, "Not Intalled");
              AbilityList.Add(12, "Install Error");
              AbilityList.Add(13, "Power Save ,exact Status Unknown");
              AbilityList.Add(14, "Power Save - Low Power Mode");
              AbilityList.Add(15, "Power Save - Standby");
              AbilityList.Add(16, "Power Cycle");
              AbilityList.Add(17, "Power Save - Warning");

              /* CpuStatus List */
              CpuStatusList.Add(0, "Unknown");
              CpuStatusList.Add(1, "CPU Enabled");
              CpuStatusList.Add(2, "CPU Disabled by User via BIOS Setup");
              CpuStatusList.Add(3, "CPU Disabled by BIOS (POST Error)");
              CpuStatusList.Add(4, "Cpu is Idle");
              CpuStatusList.Add(5, "Reserved");
              CpuStatusList.Add(6, "Reserved");
              CpuStatusList.Add(7, "Other");

              /*Family List */
              FamilyList.Add(1, "Other");
              FamilyList.Add(2, "Unknown");
              FamilyList.Add(3, "8086");
              FamilyList.Add(4, "80286");
              FamilyList.Add(5, "Intel386 Processor");
              FamilyList.Add(6, "Intel486 Processor");
              FamilyList.Add(7, "8087");
              FamilyList.Add(8, "80287");
              FamilyList.Add(9, "80387");
              FamilyList.Add(10, "80487");
              FamilyList.Add(11, "Pentium Brand");
              FamilyList.Add(12, "Pentium Pro");
              FamilyList.Add(13, "Pentium II");
              FamilyList.Add(14, "Pentium Processor with MMX Technology");
              FamilyList.Add(15, "Celeron");
              FamilyList.Add(16, "Pentium II Xeon");
              FamilyList.Add(17, "Pentium III");
              FamilyList.Add(18, "M1 Family");
              FamilyList.Add(19, "M2 Family");
              FamilyList.Add(24, "AMD Duron Processor Family");
              FamilyList.Add(25, "K5 Family");
              FamilyList.Add(26, "K6 Family");
              FamilyList.Add(27, "K6-2");
              FamilyList.Add(28, "K6-3");
              FamilyList.Add(29, "AMD Athlon Processor Family");
              FamilyList.Add(30, "AMD2900 Family");
              FamilyList.Add(31, "K6-2+");
              FamilyList.Add(32, "Power PC Family");
              FamilyList.Add(33, "Power PC 601");
              FamilyList.Add(34, "Power PC 603");
              FamilyList.Add(35, "Power PC 603+");
              FamilyList.Add(36, "Power PC 604");
              FamilyList.Add(37, "Power PC 620");
              FamilyList.Add(38, "Power PC X704");
              FamilyList.Add(39, "Power PC 750");
              FamilyList.Add(48, "Alpha Family");
              FamilyList.Add(49, "Alpha 21064");
              FamilyList.Add(50, "Alpha 21066");
              FamilyList.Add(51, "Alpha 21164");
              FamilyList.Add(52, "Alpha 21164PC");
              FamilyList.Add(53, "Alpha 21164a");
              FamilyList.Add(54, "Alpha 21264");
              FamilyList.Add(55, "Alpha 21364");
              FamilyList.Add(64, "MIPS Family");
              FamilyList.Add(65, "MIPS R4000");
              FamilyList.Add(66, "MIPS R4200");
              FamilyList.Add(67, "MIPS R4400");
              FamilyList.Add(68, "MIPS R4600");
              FamilyList.Add(69, "MIPS R10000");
              FamilyList.Add(80, "SPARC Family");
              FamilyList.Add(81, "SuperSPARC");
              FamilyList.Add(82, "microSPARC II");
              FamilyList.Add(83, "microSPARC IIep");
              FamilyList.Add(84, "UltraSPARC");
              FamilyList.Add(85, "UltraSPARC II");
              FamilyList.Add(86, "UltraSPARC IIi");
              FamilyList.Add(87, "UltraSPARC III");
              FamilyList.Add(88, "UltraSPARC IIIi");
              FamilyList.Add(96, "68040");
              FamilyList.Add(97, "68xxx Family");
              FamilyList.Add(98, "68000");
              FamilyList.Add(99, "68010");
              FamilyList.Add(100, "68020");
              FamilyList.Add(101, "68030");
              FamilyList.Add(112, "Hobbit Family");
              FamilyList.Add(120, "Crusoe TM5000 Family");
              FamilyList.Add(121, "Crusoe TM3000 Family");
              FamilyList.Add(122, "Efficeon TM8000 Family");
              FamilyList.Add(128, "Weitek");
              FamilyList.Add(130, "Itanium Processor");
              FamilyList.Add(131, "AMD Athlon 64 Processor Famiily");
              FamilyList.Add(132, "AMD Opteron Processor Family");
              FamilyList.Add(144, "PA-RISC Family");
              FamilyList.Add(145, "PA-RISC 8500");
              FamilyList.Add(146, "PA-RISC 8000");
              FamilyList.Add(147, "PA-RISC 7300LC");
              FamilyList.Add(148, "PA-RISC 7200");
              FamilyList.Add(149, "PA-RISC 7100LC");
              FamilyList.Add(150, "PA-RISC 7100");
              FamilyList.Add(160, "V30 Family");
              FamilyList.Add(176, "Pentium III Xeon Processor");
              FamilyList.Add(177, "Pentium III Processor with Intel SpeedStep&trade; Technology");
              FamilyList.Add(178, "Pentium 4");
              FamilyList.Add(179, "Intel Xeon");
              FamilyList.Add(180, "AS400 Family");
              FamilyList.Add(181, "Intel Xeon Processor MP");
              FamilyList.Add(182, "AMD Athlon XP Family");
              FamilyList.Add(183, "AMD Athlon MP Family");
              FamilyList.Add(184, "Intel Itanium 2");
              FamilyList.Add(185, "Intel Pentium M Processor");
              FamilyList.Add(190, "K7");
              FamilyList.Add(200, "IBM390 Family");
              FamilyList.Add(201, "G4");
              FamilyList.Add(202, "G5");
              FamilyList.Add(203, "G6");
              FamilyList.Add(204, "z/Architecture Base");
              FamilyList.Add(250, "i860");
              FamilyList.Add(251, "i960");
              FamilyList.Add(260, "SH-3");
              FamilyList.Add(261, "SH-4");
              FamilyList.Add(280, "ARM");
              FamilyList.Add(281, "StrongARM");
              FamilyList.Add(300, "6x86");
              FamilyList.Add(301, "MediaGX");
              FamilyList.Add(302, "MII");
              FamilyList.Add(320, "WinChip");
              FamilyList.Add(350, "DSP");
              FamilyList.Add(500, "Video Processor");

              /* Processor Type */
              ProcessorTypeList.Add(1, "Other");
              ProcessorTypeList.Add(2, "Unknown");
              ProcessorTypeList.Add(3, "Central Processor");
              ProcessorTypeList.Add(4, "Math Processor");
              ProcessorTypeList.Add(5, "DSP Processor");
              ProcessorTypeList.Add(6, "Video Processor");

              /*Voltage Cap List */
              VolatageCapList.Add(1, "5 volts");
              VolatageCapList.Add(2, "3.3 volts");
              VolatageCapList.Add(4, "2.9 volts");
        }
Example #15
0
        /// <summary>
        /// DeviceID from Caption
        /// </summary>
        /// <param name="caption">Caption of the Device</param>
        /// <returns>DeviceID</returns>
        public string GetDeviceIdFromCaption(string caption)
        {
            Wmi TWmi = new Wmi("Win32_DiskDrive", "WHERE Caption='" + caption + "'");

            return TWmi.GetInfo("DeviceID");
        }
Example #16
0
        /// <summary>
        ///  initialization
        /// </summary>
        /// <param name="DeviceID">DeviceID for the Device you can use CDromDriveList to get a full list of installed Device </param>
        public CdromDrive(string DeviceID)
        {
            wmi = new Wmi("Win32_CDROMDrive");

            mDeviceID = DeviceID;
        }
Example #17
0
 /// <summary>
 /// Initialization
 /// </summary>
 public PhysicalMemory()
 {
     wmi = new Wmi("Win32_PhysicalMemory");
 }
Example #18
0
        private void init()
        {
            wmi = new Wmi("Win32_LogicalDisk");
            MediaType.Add(0, "Format is unknown");
            MediaType.Add(1, "5 1/4-Inch Floppy Disk - 1.2 MB - 512 bytes/sector");
            MediaType.Add(2, "3 1/2-Inch Floppy Disk - 1.44 MB -512 bytes/sector");
            MediaType.Add(3, "3 1/2-Inch Floppy Disk - 2.88 MB - 512 bytes/sector");
            MediaType.Add(4, "3 1/2-Inch Floppy Disk - 20.8 MB - 512 bytes/sector");
            MediaType.Add(5, "3 1/2-Inch Floppy Disk - 720 KB - 512 bytes/sector");
            MediaType.Add(6, "5 1/4-Inch Floppy Disk - 360 KB - 512 bytes/sector");
            MediaType.Add(7, "5 1/4-Inch Floppy Disk - 320 KB - 512 bytes/sector");
            MediaType.Add(8, "5 1/4-Inch Floppy Disk - 320 KB - 1024 bytes/sector");
            MediaType.Add(9, "5 1/4-Inch Floppy Disk - 180 KB - 512 bytes/sector");
            MediaType.Add(10, "5 1/4-Inch Floppy Disk - 160 KB - 512 bytes/sector");
            MediaType.Add(11, "Removable media other than floppy");
            MediaType.Add(12, "Fixed hard disk media");
            MediaType.Add(13, "3 1/2-Inch Floppy Disk - 120 MB - 512 bytes/sector");
            MediaType.Add(14, "3 1/2-Inch Floppy Disk - 640 KB - 512 bytes/sector");
            MediaType.Add(15, "5 1/4-Inch Floppy Disk - 640 KB - 512 bytes/sector");
            MediaType.Add(16, "5 1/4-Inch Floppy Disk - 720 KB - 512 bytes/sector");
            MediaType.Add(17, "3 1/2-Inch Floppy Disk - 1.2 MB - 512 bytes/sector");
            MediaType.Add(18, "3 1/2-Inch Floppy Disk - 1.23 MB - 1024 bytes/sector");
            MediaType.Add(19, "5 1/4-Inch Floppy Disk - 1.23 MB - 1024 bytes/sector");
            MediaType.Add(20, "3 1/2-Inch Floppy Disk - 128 MB - 512 bytes/sector");
            MediaType.Add(21, "3 1/2-Inch Floppy Disk - 230 MB - 512 bytes/sector");
            MediaType.Add(22, "8-Inch Floppy Disk - 256 KB - 128 bytes/sector");

            TypeDrive.Add(0, "Unknown");
            TypeDrive.Add(1, "No Root Directory");
            TypeDrive.Add(2, "Removable Disk");
            TypeDrive.Add(3, "Local Disk");
            TypeDrive.Add(4, "Network Drive");
            TypeDrive.Add(5, "Compact Disc");
            TypeDrive.Add(6, "RAM Disk");
        }
Example #19
0
 /// <summary>
 /// Initialization
 /// </summary>
 public Motherboard()
 {
     wmi = new Wmi("Win32_BaseBoard");
 }