本帖最后由 df82325542 于 2010-07-22 15:16:47 编辑

解决方案 »

  1.   

    [Serializable]
            public class CPUInfo
            {
                /// <summary>
                /// CPU序¨°列¢D号?
                /// </summary>
                public string ProcessorId { get; set; }            /// <summary>
                /// CPU的Ì?规?格?
                /// </summary>
                public string Name { get; set; }//CPU的Ì?规?格?
                /// <summary>
                /// //CPU的Ì?版ã?本À?
                /// </summary>
                public string Description { get; set; }//CPU的Ì?版ã?本À?            /// <summary>
                /// CPU的Ì?主¡Â频¦Ì
                /// </summary>
                public UInt32 CurrentClockSpeed { get; set; }            /// <summary>
                /// CPU的Ì?最Á?大䨮频¦Ì率¨º(ꡧ高?频¦Ì)ê?
                /// </summary>
                public UInt32 MaxClockSpeed { get; set; }            /// <summary>
                /// CPU的Ì?厂¡ì商¦¨¬
                /// </summary>
                public string Manufacturer { get; set; }            /// <summary>
                /// CPU的Ì?前¡ã端?总Á¨¹线?
                /// </summary>
                public UInt32 ExtClock { get; set; }            /// <summary>
                /// CPU的Ì?核?心?数ºy
                /// </summary>
                public UInt32 NumberOfCores { get; set; }            /// <summary>
                /// CPU的Ì?二t级?缓o存ä?
                /// </summary>
                public UInt32 L2CacheSize { get; set; }            /// <summary>
                /// CPU逻?辑-核?心?个?数ºy
                /// </summary>
                public UInt32 NumberOfLogicalProcessors { get; set; }            /// <summary>
                /// CPU使º1用®?率¨º
                /// </summary>
                public UInt16 LoadPercentage { get; set; }            public UInt16 AddressWidth { get; set; }
                public UInt16 Architecture { get; set; }
                public UInt16 Availability { get; set; }
                public String Caption { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public UInt16 CpuStatus { get; set; }
                public String CreationClassName { get; set; }
               
                public UInt16 CurrentVoltage { get; set; }
                public UInt16 DataWidth { get; set; }
                
                public String DeviceID { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                
                public UInt16 Family { get; set; }
                public DateTime InstallDate { get; set; }
               
                public UInt32 L2CacheSpeed { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public UInt16 Level { get; set; }           
               
                public String OtherFamilyDescription { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
               
                public UInt16 ProcessorType { get; set; }
                public UInt16 Revision { get; set; }
                public String Role { get; set; }
                public String SocketDesignation { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String Stepping { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
                public String UniqueId { get; set; }
                public UInt16 UpgradeMethod { get; set; }
                public String Version { get; set; }
                public UInt32 VoltageCaps { get; set; }
            }
    /// <summary>
            /// 物理内存信息        /// </summary>
            [Serializable]
            public class PhysicalMemory
            {
                public String BankLabel { get; set; }
                public UInt64 Capacity { get; set; }
                public String Caption { get; set; }
                public String CreationClassName { get; set; }
                public UInt16 DataWidth { get; set; }
                public String Description { get; set; }
                public String DeviceLocator { get; set; }
                public UInt16 FormFactor { get; set; }
                public Boolean HotSwappable { get; set; }
                public DateTime InstallDate { get; set; }
                public UInt16 InterleaveDataDepth { get; set; }
                public UInt32 InterleavePosition { get; set; }
                public String Manufacturer { get; set; }
                public UInt16 MemoryType { get; set; }
                public String Model { get; set; }
                public String Name { get; set; }
                public String OtherIdentifyingInfo { get; set; }
                public String PartNumber { get; set; }
                public UInt32 PositionInRow { get; set; }
                public Boolean PoweredOn { get; set; }
                public Boolean Removable { get; set; }
                public Boolean Replaceable { get; set; }
                public String SerialNumber { get; set; }
                public String SKU { get; set; }
                public UInt32 Speed { get; set; }
                public String Status { get; set; }
                public String Tag { get; set; }
                public UInt16 TotalWidth { get; set; }
                public UInt16 TypeDetail { get; set; }
                public String Version { get; set; }
            }
    /// <summary>
            /// 显卡信息        /// </summary>
            [Serializable]
            public class VideoInfo
            {
                public UInt16 AcceleratorCapabilities { get; set; }
                public String AdapterCompatibility { get; set; }
                public String AdapterDACType { get; set; }
                public UInt32 AdapterRAM { get; set; }
                public UInt16 Availability { get; set; }
                public String[] CapabilityDescriptions { get; set; }
                public String Caption { get; set; }
                public UInt32 ColorTableEntries { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public String CreationClassName { get; set; }
                public UInt32 CurrentBitsPerPixel { get; set; }
                public UInt32 CurrentHorizontalResolution { get; set; }
                public UInt64 CurrentNumberOfColors { get; set; }
                public UInt32 CurrentNumberOfColumns { get; set; }
                public UInt32 CurrentNumberOfRows { get; set; }
                public UInt32 CurrentRefreshRate { get; set; }
                public UInt16 CurrentScanMode { get; set; }
                public UInt32 CurrentVerticalResolution { get; set; }
                public String Description { get; set; }
                public String DeviceID { get; set; }
                public UInt32 DeviceSpecificPens { get; set; }
                public UInt32 DitherType { get; set; }
                public String DriverDate { get; set; }
                public String DriverVersion { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                public UInt32 ICMIntent { get; set; }
                public UInt32 ICMMethod { get; set; }
                public String InfFilename { get; set; }
                public String InfSection { get; set; }
                public DateTime InstallDate { get; set; }
                public String InstalledDisplayDrivers { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public UInt32 MaxMemorySupported { get; set; }
                public UInt32 MaxNumberControlled { get; set; }
                public UInt32 MaxRefreshRate { get; set; }
                public UInt32 MinRefreshRate { get; set; }
                public Boolean Monochrome { get; set; }
                public String Name { get; set; }
                public UInt16 NumberOfColorPlanes { get; set; }
                public UInt32 NumberOfVideoPages { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
                public UInt16 ProtocolSupported { get; set; }
                public UInt32 ReservedSystemPaletteEntries { get; set; }
                public UInt32 SpecificationVersion { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
                public UInt32 SystemPaletteEntries { get; set; }
                public DateTime TimeOfLastReset { get; set; }
                public UInt16 VideoArchitecture { get; set; }
                public UInt16 VideoMemoryType { get; set; }
                public UInt16 VideoMode { get; set; }
                public String VideoModeDescription { get; set; }
                public String VideoProcessor { get; set; }        }
      

  2.   

    /// <summary>
            /// 硬盘驱动信息        /// </summary>
            [Serializable]
            public class DiskDrive
            {
                public UInt16 Availability { get; set; }
                public UInt32 BytesPerSector { get; set; }
                public UInt16[] Capabilities { get; set; }
                public String[] CapabilityDescriptions { get; set; }
                public String Caption { get; set; }
                public String CompressionMethod { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public String CreationClassName { get; set; }
                public UInt64 DefaultBlockSize { get; set; }
                public String Description { get; set; }
                public String DeviceID { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                public String ErrorMethodology { get; set; }
                public UInt32 Index { get; set; }
                public DateTime InstallDate { get; set; }
                public String InterfaceType { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public String Manufacturer { get; set; }
                public UInt64 MaxBlockSize { get; set; }
                public UInt64 MaxMediaSize { get; set; }
                public Boolean MediaLoaded { get; set; }
                public String MediaType { get; set; }
                public UInt64 MinBlockSize { get; set; }
                public String Model { get; set; }
                public String Name { get; set; }
                public Boolean NeedsCleaning { get; set; }
                public UInt32 NumberOfMediaSupported { get; set; }
                public UInt32 Partitions { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
                public UInt32 SCSIBus { get; set; }
                public UInt16 SCSILogicalUnit { get; set; }
                public UInt16 SCSIPort { get; set; }
                public UInt16 SCSITargetId { get; set; }
                public UInt32 SectorsPerTrack { get; set; }
                public UInt32 Signature { get; set; }
                public UInt64 Size { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
                public UInt64 TotalCylinders { get; set; }
                public UInt32 TotalHeads { get; set; }
                public UInt64 TotalSectors { get; set; }
                public UInt64 TotalTracks { get; set; }
                public UInt32 TracksPerCylinder { get; set; }        }        /// <summary>
            /// 声卡信息        /// </summary>
            [Serializable]
            public class SoundInfo
            {
                public UInt16 Availability { get; set; }
                public String Caption { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public String CreationClassName { get; set; }
                public String Description { get; set; }
                public String DeviceID { get; set; }
                public UInt16 DMABufferSize { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                public DateTime InstallDate { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public String Manufacturer { get; set; }
                public UInt32 MPU401Address { get; set; }
                public String Name { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
                public String ProductName { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
            }        /// <summary>
            /// 网卡信息        /// </summary>
            [Serializable]
            public class NetworkInfo
            { 
                public String AdapterType { get; set; }
                public UInt16 AdapterTypeId { get; set; }
                public Boolean AutoSense { get; set; }
                public UInt16 Availability { get; set; }
                public String Caption { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public String CreationClassName { get; set; }
                public String Description { get; set; }
                public String DeviceID { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                public UInt32 Index { get; set; }
                public DateTime InstallDate { get; set; }
                public Boolean Installed { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public String MACAddress { get; set; }
                public String Manufacturer { get; set; }
                public UInt32 MaxNumberControlled { get; set; }
                public UInt64 MaxSpeed { get; set; }
                public String Name { get; set; }
                public String NetConnectionID { get; set; }
                public UInt16 NetConnectionStatus { get; set; }
                public String NetworkAddresses { get; set; }
                public String PermanentAddress { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
                public String ProductName { get; set; }
                public String ServiceName { get; set; }
                public UInt64 Speed { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
                public String TimeOfLastReset { get; set; }
            }
      

  3.   

    /// <summary>
            /// 光驱信息        /// </summary>
            [Serializable]
            public class CDROMInfo
            {
                public UInt16 Availability { get; set; }
                public UInt16[] Capabilities { get; set; }
                public String[] CapabilityDescriptions { get; set; }
                public String Caption { get; set; }
                public String CompressionMethod { get; set; }
                public UInt32 ConfigManagerErrorCode { get; set; }
                public Boolean ConfigManagerUserConfig { get; set; }
                public String CreationClassName { get; set; }
                public UInt64 DefaultBlockSize { get; set; }
                public String Description { get; set; }
                public String DeviceID { get; set; }
                public String Drive { get; set; }
                public Boolean DriveIntegrity { get; set; }
                public Boolean ErrorCleared { get; set; }
                public String ErrorDescription { get; set; }
                public String ErrorMethodology { get; set; }
                public UInt16 FileSystemFlags { get; set; }
                public UInt32 FileSystemFlagsEx { get; set; }
                public String Id { get; set; }
                public DateTime InstallDate { get; set; }
                public UInt32 LastErrorCode { get; set; }
                public String Manufacturer { get; set; }
                public UInt64 MaxBlockSize { get; set; }
                public UInt32 MaximumComponentLength { get; set; }
                public UInt64 MaxMediaSize { get; set; }
                public Boolean MediaLoaded { get; set; }
                public String MediaType { get; set; }
                public String MfrAssignedRevisionLevel { get; set; }
                public UInt64 MinBlockSize { get; set; }
                public String Name { get; set; }
                public Boolean NeedsCleaning { get; set; }
                public UInt32 NumberOfMediaSupported { get; set; }
                public String PNPDeviceID { get; set; }
                public UInt16 PowerManagementCapabilities { get; set; }
                public Boolean PowerManagementSupported { get; set; }
                public String RevisionLevel { get; set; }
                public UInt32 SCSIBus { get; set; }
                public UInt16 SCSILogicalUnit { get; set; }
                public UInt16 SCSIPort { get; set; }
                public UInt16 SCSITargetId { get; set; }
                public UInt64 Size { get; set; }
                public String Status { get; set; }
                public UInt16 StatusInfo { get; set; }
                public String SystemCreationClassName { get; set; }
                public String SystemName { get; set; }
                public Double TransferRate { get; set; }
                public String VolumeName { get; set; }
                public String VolumeSerialNumber { get; set; }        }