WMI

WMI类--所有可用的WMI的类封装  

public   class  WMIClasses 
    

        private Hashtable _ClassHash=new Hashtable(); 
        public WMIClasses() 
        
            LoadWMIClasses(); 
        }
 
 
        private void LoadWMIClasses() 
        
            _ClassHash.Clear(); 
            _ClassHash["计算机系统硬件"]=new Hashtable(); 
            Hashtable hash=(Hashtable)_ClassHash["计算机系统硬件"]; 
 
            hash["降温设备"]=new DataSet("降温设备"); 
            DataSet dataset=(DataSet)hash["降温设备"]; 
            dataset.Tables.Add(new DataTable("Win32_Fan")); 
            dataset.Tables.Add(new DataTable("Win32_HeatPipe")); 
            dataset.Tables.Add(new DataTable("Win32_Refrigeration")); 
            dataset.Tables.Add(new DataTable("Win32_TemperatureProbe")); 
 
            hash["输入设备"]=new DataSet("输入设备"); 
            dataset=(DataSet)hash["输入设备"]; 
            dataset.Tables.Add(new DataTable("Win32_Keyboard")); 
            dataset.Tables.Add(new DataTable("Win32_PointingDevice")); 
             
            hash["存储设备"]=new DataSet("存储设备"); 
            dataset=(DataSet)hash["存储设备"]; 
            dataset.Tables.Add(new DataTable("Win32_AutochkSetting")); 
            dataset.Tables.Add(new DataTable("Win32_CDROMDrive")); 
            dataset.Tables.Add(new DataTable("Win32_DiskDrive")); 
            dataset.Tables.Add(new DataTable("Win32_FloppyDrive")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_MappedLogicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_TapeDrive")); 
 
            hash["主板控制器及端口"]=new DataSet("主板控制器及端口"); 
            dataset=(DataSet)hash["主板控制器及端口"]; 
            dataset.Tables.Add(new DataTable("Win32_1394Controller")); 
            dataset.Tables.Add(new DataTable("Win32_1394ControllerDevice")); 
            dataset.Tables.Add(new DataTable("Win32_AllocatedResource")); 
            dataset.Tables.Add(new DataTable("Win32_AssociatedProcessorMemory")); 
            dataset.Tables.Add(new DataTable("Win32_BaseBoard")); 
            dataset.Tables.Add(new DataTable("Win32_BIOS")); 
            dataset.Tables.Add(new DataTable("Win32_Bus")); 
            dataset.Tables.Add(new DataTable("Win32_CacheMemory")); 
            dataset.Tables.Add(new DataTable("Win32_ControllerHasHub")); 
            dataset.Tables.Add(new DataTable("Win32_DeviceBus")); 
            dataset.Tables.Add(new DataTable("Win32_DeviceMemoryAddress")); 
            dataset.Tables.Add(new DataTable("Win32_DeviceSettings")); 
            dataset.Tables.Add(new DataTable("Win32_DMAChannel")); 
            dataset.Tables.Add(new DataTable("Win32_FloppyController")); 
            dataset.Tables.Add(new DataTable("Win32_IDEController")); 
            dataset.Tables.Add(new DataTable("Win32_IDEControllerDevice")); 
            dataset.Tables.Add(new DataTable("Win32_InfraredDevice")); 
            dataset.Tables.Add(new DataTable("Win32_IRQResource")); 
            dataset.Tables.Add(new DataTable("Win32_MemoryArray")); 
            dataset.Tables.Add(new DataTable("Win32_MemoryArrayLocation")); 
            dataset.Tables.Add(new DataTable("Win32_MemoryDevice")); 
            dataset.Tables.Add(new DataTable("Win32_MemoryDeviceArray")); 
            dataset.Tables.Add(new DataTable("Win32_MemoryDeviceLocation")); 
            dataset.Tables.Add(new DataTable("Win32_MotherboardDevice")); 
            dataset.Tables.Add(new DataTable("Win32_OnBoardDevice")); 
            dataset.Tables.Add(new DataTable("Win32_ParallelPort")); 
            dataset.Tables.Add(new DataTable("Win32_PCMCIAController")); 
            dataset.Tables.Add(new DataTable("Win32_PhysicalMemory")); 
            dataset.Tables.Add(new DataTable("Win32_PhysicalMemoryArray")); 
            dataset.Tables.Add(new DataTable("Win32_PhysicalMemoryLocation")); 
            dataset.Tables.Add(new DataTable("Win32_PNPAllocatedResource")); 
            dataset.Tables.Add(new DataTable("Win32_PNPDevice")); 
            dataset.Tables.Add(new DataTable("Win32_PNPEntity")); 
            dataset.Tables.Add(new DataTable("Win32_PortConnector")); 
            dataset.Tables.Add(new DataTable("Win32_PortResource")); 
            dataset.Tables.Add(new DataTable("Win32_Processor")); 
            dataset.Tables.Add(new DataTable("Win32_SCSIController")); 
            dataset.Tables.Add(new DataTable("Win32_SCSIControllerDevice")); 
            dataset.Tables.Add(new DataTable("Win32_SerialPort")); 
            dataset.Tables.Add(new DataTable("Win32_SerialPortConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_SerialPortSetting")); 
            dataset.Tables.Add(new DataTable("Win32_SMBIOSMemory")); 
            dataset.Tables.Add(new DataTable("Win32_SoundDevice")); 
            dataset.Tables.Add(new DataTable("Win32_SystemBIOS")); 
            dataset.Tables.Add(new DataTable("Win32_SystemDriverPNPEntity")); 
            dataset.Tables.Add(new DataTable("Win32_SystemEnclosure")); 
            dataset.Tables.Add(new DataTable("Win32_SystemMemoryResource")); 
            dataset.Tables.Add(new DataTable("Win32_SystemSlot")); 
            dataset.Tables.Add(new DataTable("Win32_USBController")); 
            dataset.Tables.Add(new DataTable("Win32_USBControllerDevice")); 
            dataset.Tables.Add(new DataTable("Win32_USBHub")); 
 
            hash["网络设备"]=new DataSet("网络设备"); 
            dataset=(DataSet)hash["网络设备"]; 
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapter")); 
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapterConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_NetworkAdapterSetting")); 
 
            hash["电源"]=new DataSet("电源"); 
            dataset=(DataSet)hash["电源"]; 
            dataset.Tables.Add(new DataTable("Win32_Battery")); 
            dataset.Tables.Add(new DataTable("Win32_CurrentProbe")); 
            dataset.Tables.Add(new DataTable("Win32_PortableBattery")); 
            dataset.Tables.Add(new DataTable("Win32_PowerManagementEvent")); 
            dataset.Tables.Add(new DataTable("Win32_UninterruptiblePowerSupply")); 
            dataset.Tables.Add(new DataTable("Win32_VoltageProbe")); 
 
            hash["打印设备"]=new DataSet("打印设备"); 
            dataset=(DataSet)hash["打印设备"]; 
            dataset.Tables.Add(new DataTable("Win32_DriverForDevice")); 
            dataset.Tables.Add(new DataTable("Win32_Printer")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterController")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterDriver")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterDriverDll")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterSetting")); 
            dataset.Tables.Add(new DataTable("Win32_PrintJob")); 
            dataset.Tables.Add(new DataTable("Win32_TCPIPPrinterPort")); 
 
            hash["电话设备"]=new DataSet("电话设备"); 
            dataset=(DataSet)hash["电话设备"]; 
            dataset.Tables.Add(new DataTable("Win32_POTSModem")); 
            dataset.Tables.Add(new DataTable("Win32_POTSModemToSerialPort")); 
 
            hash["视频和监视器"]=new DataSet("视频和监视器"); 
            dataset=(DataSet)hash["视频和监视器"]; 
            dataset.Tables.Add(new DataTable("Win32_DesktopMonitor")); 
            dataset.Tables.Add(new DataTable("Win32_DisplayConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_DisplayControllerConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_VideoConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_VideoController")); 
            dataset.Tables.Add(new DataTable("Win32_VideoSettings")); 
 
 
            _ClassHash["软件操作系统"]=new Hashtable(); 
            hash=(Hashtable)_ClassHash["软件操作系统"]; 
 
            hash["组件"]=new DataSet("组件"); 
            dataset=(DataSet)hash["组件"]; 
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMApplicationClasses")); 
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMClass")); 
            dataset.Tables.Add(new DataTable("Win32_ClassicCOMClassSettings")); 
            dataset.Tables.Add(new DataTable("Win32_ClientApplicationSetting")); 
            dataset.Tables.Add(new DataTable("Win32_COMApplication")); 
            dataset.Tables.Add(new DataTable("Win32_COMApplicationClasses")); 
            dataset.Tables.Add(new DataTable("Win32_COMApplicationSettings")); 
            dataset.Tables.Add(new DataTable("Win32_COMClass")); 
            dataset.Tables.Add(new DataTable("Win32_ComClassAutoEmulator")); 
            dataset.Tables.Add(new DataTable("Win32_ComClassEmulator")); 
            dataset.Tables.Add(new DataTable("Win32_ComponentCategory")); 
            dataset.Tables.Add(new DataTable("Win32_COMSetting")); 
            dataset.Tables.Add(new DataTable("Win32_DCOMApplication")); 
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationAccessAllowedSetting")); 
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationLaunchAllowedSetting")); 
            dataset.Tables.Add(new DataTable("Win32_DCOMApplicationSetting")); 
            dataset.Tables.Add(new DataTable("Win32_ImplementedCategory")); 
 
            hash["桌面"]=new DataSet("桌面"); 
            dataset=(DataSet)hash["桌面"]; 
            dataset.Tables.Add(new DataTable("Win32_Desktop")); 
            dataset.Tables.Add(new DataTable("Win32_Environment")); 
            dataset.Tables.Add(new DataTable("Win32_TimeZone")); 
            dataset.Tables.Add(new DataTable("Win32_UserDesktop")); 
 
            hash["驱动"]=new DataSet("驱动"); 
            dataset=(DataSet)hash["驱动"]; 
            dataset.Tables.Add(new DataTable("Win32_DriverVXD")); 
            dataset.Tables.Add(new DataTable("Win32_SystemDriver")); 
 
            hash["文件系统"]=new DataSet("文件系统"); 
            dataset=(DataSet)hash["文件系统"]; 
            dataset.Tables.Add(new DataTable("Win32_CIMLogicalDeviceCIMDataFile")); 
            dataset.Tables.Add(new DataTable("Win32_Directory")); 
            dataset.Tables.Add(new DataTable("Win32_DirectorySpecification")); 
            dataset.Tables.Add(new DataTable("Win32_DiskDriveToDiskPartition")); 
            dataset.Tables.Add(new DataTable("Win32_DiskPartition")); 
            dataset.Tables.Add(new DataTable("Win32_DiskQuota")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalDiskRootDirectory")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalDiskToPartition")); 
            dataset.Tables.Add(new DataTable("Win32_OperatingSystemAutochkSetting")); 
            dataset.Tables.Add(new DataTable("Win32_QuotaSetting")); 
            dataset.Tables.Add(new DataTable("Win32_ShortcutFile")); 
            dataset.Tables.Add(new DataTable("Win32_SubDirectory")); 
            dataset.Tables.Add(new DataTable("Win32_SystemPartitions")); 
            dataset.Tables.Add(new DataTable("Win32_VolumeQuotaSetting")); 
 
            hash["工作对象"]=new DataSet("工作对象"); 
            dataset=(DataSet)hash["工作对象"]; 
            dataset.Tables.Add(new DataTable("Win32_CollectionStatistics")); 
            dataset.Tables.Add(new DataTable("Win32_LUID")); 
            dataset.Tables.Add(new DataTable("Win32_LUIDandAttributes")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObject")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectActgInfo")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectLimit")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectLimitSetting")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectProcess")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectSecLimit")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectSecLimitSetting")); 
            dataset.Tables.Add(new DataTable("Win32_NamedJobObjectStatistics")); 
            dataset.Tables.Add(new DataTable("Win32_SIDandAttributes")); 
            dataset.Tables.Add(new DataTable("Win32_TokenGroups")); 
            dataset.Tables.Add(new DataTable("Win32_TokenPrivileges")); 
 
            hash["内存和页面"]=new DataSet("内存和页面"); 
            dataset=(DataSet)hash["内存和页面"]; 
            dataset.Tables.Add(new DataTable("Win32_LogicalMemoryConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_PageFile")); 
            dataset.Tables.Add(new DataTable("Win32_PageFileElementSetting")); 
            dataset.Tables.Add(new DataTable("Win32_PageFileSetting")); 
            dataset.Tables.Add(new DataTable("Win32_PageFileUsage")); 
            dataset.Tables.Add(new DataTable("Win32_SystemLogicalMemoryConfiguration")); 
 
            hash["媒体和音频"]=new DataSet("媒体和音频"); 
            dataset=(DataSet)hash["媒体和音频"]; 
            dataset.Tables.Add(new DataTable("Win32_CodecFile")); 
 
            hash["网络"]=new DataSet("网络"); 
            dataset=(DataSet)hash["网络"]; 
            dataset.Tables.Add(new DataTable(" Win32_ActiveRoute")); 
            dataset.Tables.Add(new DataTable(" Win32_IP4PersistedRouteTable")); 
            dataset.Tables.Add(new DataTable(" Win32_IP4RouteTable")); 
            dataset.Tables.Add(new DataTable(" Win32_IP4RouteTableEvent")); 
            dataset.Tables.Add(new DataTable(" Win32_NetworkClient")); 
            dataset.Tables.Add(new DataTable(" Win32_NetworkConnection")); 
            dataset.Tables.Add(new DataTable(" Win32_NetworkProtocol")); 
            dataset.Tables.Add(new DataTable(" Win32_NTDomain")); 
            dataset.Tables.Add(new DataTable(" Win32_PingStatus")); 
            dataset.Tables.Add(new DataTable(" Win32_ProtocolBinding")); 
 
            hash["操作系统事件"]=new DataSet("操作系统事件"); 
            dataset=(DataSet)hash["操作系统事件"]; 
            dataset.Tables.Add(new DataTable("Win32_ComputerShutdownEvent")); 
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemEvent")); 
            dataset.Tables.Add(new DataTable("NWin32_DeviceChangeEvent")); 
            dataset.Tables.Add(new DataTable("Win32_ModuleLoadTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ModuleTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ProcessStartTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ProcessStopTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ProcessTrace")); 
            dataset.Tables.Add(new DataTable("Win32_SystemConfigurationChangeEvent")); 
            dataset.Tables.Add(new DataTable("Win32_SystemTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ThreadStartTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ThreadStopTrace")); 
            dataset.Tables.Add(new DataTable("Win32_ThreadTrace")); 
            dataset.Tables.Add(new DataTable("Win32_VolumeChangeEvent")); 
 
            hash["操作系统设置"]=new DataSet("操作系统设置"); 
            dataset=(DataSet)hash["操作系统设置"]; 
            dataset.Tables.Add(new DataTable("Win32_BootConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_ComputerSystem")); 
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemProcessor")); 
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemProduct")); 
            dataset.Tables.Add(new DataTable("Win32_DependentService")); 
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroup")); 
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroupServiceDependencies")); 
            dataset.Tables.Add(new DataTable("Win32_LoadOrderGroupServiceMembers")); 
            dataset.Tables.Add(new DataTable("Win32_OperatingSystem")); 
            dataset.Tables.Add(new DataTable("Win32_OperatingSystemQFE")); 
            dataset.Tables.Add(new DataTable("Win32_OSRecoveryConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_QuickFixEngineering")); 
            dataset.Tables.Add(new DataTable("Win32_StartupCommand")); 
            dataset.Tables.Add(new DataTable("Win32_SystemBootConfiguration")); 
            dataset.Tables.Add(new DataTable("Win32_SystemDesktop")); 
            dataset.Tables.Add(new DataTable("Win32_SystemDevices")); 
            dataset.Tables.Add(new DataTable("Win32_SystemLoadOrderGroups")); 
            dataset.Tables.Add(new DataTable("Win32_SystemNetworkConnections")); 
            dataset.Tables.Add(new DataTable("Win32_SystemOperatingSystem")); 
            dataset.Tables.Add(new DataTable("Win32_SystemProcesses")); 
            dataset.Tables.Add(new DataTable("Win32_SystemProgramGroups")); 
            dataset.Tables.Add(new DataTable("Win32_SystemResources")); 
            dataset.Tables.Add(new DataTable("Win32_SystemServices")); 
            dataset.Tables.Add(new DataTable("Win32_SystemSetting")); 
            dataset.Tables.Add(new DataTable("Win32_SystemSystemDriver")); 
            dataset.Tables.Add(new DataTable("Win32_SystemTimeZone")); 
            dataset.Tables.Add(new DataTable("Win32_SystemUsers")); 
 
            hash["进程"]=new DataSet("进程"); 
            dataset=(DataSet)hash["进程"]; 
            dataset.Tables.Add(new DataTable("Win32_Process")); 
            dataset.Tables.Add(new DataTable("Win32_ProcessStartup")); 
            dataset.Tables.Add(new DataTable("Win32_Thread")); 
 
            hash["注册表"]=new DataSet("注册表"); 
            dataset=(DataSet)hash["注册表"]; 
            dataset.Tables.Add(new DataTable("Win32_Registry")); 
 
            hash["计划任务"]=new DataSet("计划任务"); 
            dataset=(DataSet)hash["计划任务"]; 
            dataset.Tables.Add(new DataTable("Win32_CurrentTime")); 
            dataset.Tables.Add(new DataTable("Win32_ScheduledJob")); 
 
            hash["安全"]=new DataSet("安全"); 
            dataset=(DataSet)hash["安全"]; 
            dataset.Tables.Add(new DataTable("NWin32_AccountSID")); 
            dataset.Tables.Add(new DataTable("Win32_ACE")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalFileAccess")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalFileAuditing")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalFileGroup")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalFileOwner")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalFileSecuritySetting")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalShareAccess")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalShareAuditing")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalShareSecuritySetting")); 
            dataset.Tables.Add(new DataTable("NWin32_PrivilegesStatus")); 
            dataset.Tables.Add(new DataTable("NWin32_SecurityDescriptor")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySetting")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingAccess")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingAuditing")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingGroup")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOfLogicalFile")); 
            dataset.Tables.Add(new DataTable("NodWin32_SecuritySettingOfLogicalShare")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOfObject")); 
            dataset.Tables.Add(new DataTable("Win32_SecuritySettingOwner")); 
            dataset.Tables.Add(new DataTable("Win32_SID")); 
            dataset.Tables.Add(new DataTable("Win32_Trustee")); 
 
            hash["服务"]=new DataSet("服务"); 
            dataset=(DataSet)hash["服务"]; 
            dataset.Tables.Add(new DataTable("Win32_BaseService")); 
            dataset.Tables.Add(new DataTable("Win32_Service")); 
 
            hash["共享"]=new DataSet("共享"); 
            dataset=(DataSet)hash["共享"]; 
            dataset.Tables.Add(new DataTable("Win32_ServerConnection")); 
            dataset.Tables.Add(new DataTable("Win32_ServerSession")); 
            dataset.Tables.Add(new DataTable("Win32_ConnectionShare")); 
            dataset.Tables.Add(new DataTable("Win32_PrinterShare")); 
            dataset.Tables.Add(new DataTable("Win32_SessionConnection")); 
            dataset.Tables.Add(new DataTable("Win32_SessionProcess")); 
            dataset.Tables.Add(new DataTable("Win32_ShareToDirectory")); 
            dataset.Tables.Add(new DataTable("Win32_Share")); 
 
            hash["开始菜单"]=new DataSet("开始菜单"); 
            dataset=(DataSet)hash["开始菜单"]; 
            dataset.Tables.Add(new DataTable("NoWin32_LogicalProgramGroup")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupDirectory")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupItem")); 
            dataset.Tables.Add(new DataTable("Win32_LogicalProgramGroupItemDataFile")); 
            dataset.Tables.Add(new DataTable("Win32_ProgramGroup")); 
            dataset.Tables.Add(new DataTable("Win32_ProgramGroupContents")); 
            dataset.Tables.Add(new DataTable("Win32_ProgramGroupOrItem")); 
 
            hash["用户"]=new DataSet("用户"); 
            dataset=(DataSet)hash["用户"]; 
            dataset.Tables.Add(new DataTable("Win32_Account")); 
            dataset.Tables.Add(new DataTable("Win32_Group")); 
            dataset.Tables.Add(new DataTable("Win32_GroupInDomain")); 
            dataset.Tables.Add(new DataTable("Win32_GroupUser")); 
            dataset.Tables.Add(new DataTable("Win32_LogonSession")); 
            dataset.Tables.Add(new DataTable("Win32_LogonSessionMappedDisk")); 
            dataset.Tables.Add(new DataTable("Win32_NetworkLoginProfile")); 
            dataset.Tables.Add(new DataTable("Win32_SystemAccount")); 
            dataset.Tables.Add(new DataTable("Win32_UserAccount")); 
            dataset.Tables.Add(new DataTable("Win32_UserInDomain")); 
 
            hash["Windows事件日志"]=new DataSet("Windows事件日志"); 
            dataset=(DataSet)hash["Windows事件日志"]; 
            dataset.Tables.Add(new DataTable("Win32_NTEventlogFile")); 
            dataset.Tables.Add(new DataTable("Win32_NTLogEvent")); 
            dataset.Tables.Add(new DataTable("Win32_NTLogEventComputer")); 
            dataset.Tables.Add(new DataTable("Win32_NTLogEventLog")); 
            dataset.Tables.Add(new DataTable("Win32_NTLogEventUser")); 
 
            hash["Windows产品激活"]=new DataSet("Windows产品激活"); 
            dataset=(DataSet)hash["Windows产品激活"]; 
            dataset.Tables.Add(new DataTable("Win32_ComputerSystemWindowsProductActivationSetting")); 
            dataset.Tables.Add(new DataTable("Win32_Proxy")); 
            dataset.Tables.Add(new DataTable("Win32_WindowsProductActivation")); 
 
            hash["应用程序安装"]=new DataSet("应用程序安装"); 
            dataset=(DataSet)hash["应用程序安装"]; 
            dataset.Tables.Add(new DataTable("Win32_ActionCheck")); 
            dataset.Tables.Add(new DataTable("Win32_ApplicationCommandLine")); 
            dataset.Tables.Add(new DataTable("Win32_ApplicationService")); 
            dataset.Tables.Add(new DataTable("Win32_Binary")); 
            dataset.Tables.Add(new DataTable("Win32_BindImageAction")); 
            dataset.Tables.Add(new DataTable("Win32_CheckCheck")); 
            dataset.Tables.Add(new DataTable("Win32_ClassInfoAction")); 
            dataset.Tables.Add(new DataTable("Win32_CommandLineAccess")); 
            dataset.Tables.Add(new DataTable("Win32_Condition")); 
            dataset.Tables.Add(new DataTable("Win32_CreateFolderAction")); 
            dataset.Tables.Add(new DataTable("Win32_DuplicateFileAction")); 
            dataset.Tables.Add(new DataTable("Win32_EnvironmentSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_ExtensionInfoAction")); 
            dataset.Tables.Add(new DataTable("Win32_FileSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_FontInfoAction")); 
            dataset.Tables.Add(new DataTable("Win32_IniFileSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_InstalledSoftwareElement")); 
            dataset.Tables.Add(new DataTable("Win32_LaunchCondition")); 
            dataset.Tables.Add(new DataTable("Win32_ManagedSystemElementResource")); 
            dataset.Tables.Add(new DataTable("Win32_MIMEInfoAction")); 
            dataset.Tables.Add(new DataTable("Win32_MoveFileAction")); 
            dataset.Tables.Add(new DataTable("Win32_MSIResource")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCAttribute")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCDataSourceAttribute")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCDataSourceSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverAttribute")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverSoftwareElement")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCDriverSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCSourceAttribute")); 
            dataset.Tables.Add(new DataTable("Win32_ODBCTranslatorSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_Patch")); 
            dataset.Tables.Add(new DataTable("Win32_PatchFile")); 
            dataset.Tables.Add(new DataTable("Win32_PatchPackage")); 
            dataset.Tables.Add(new DataTable("Win32_Product")); 
            dataset.Tables.Add(new DataTable("Win32_ProductCheck")); 
            dataset.Tables.Add(new DataTable("Win32_ProductResource")); 
            dataset.Tables.Add(new DataTable("Win32_ProductSoftwareFeatures")); 
            dataset.Tables.Add(new DataTable("Win32_ProgIDSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_Property")); 
            dataset.Tables.Add(new DataTable("Win32_PublishComponentAction")); 
            dataset.Tables.Add(new DataTable("Win32_RegistryAction")); 
            dataset.Tables.Add(new DataTable("Win32_RemoveFileAction")); 
            dataset.Tables.Add(new DataTable("Win32_RemoveIniAction")); 
            dataset.Tables.Add(new DataTable("Win32_ReserveCost")); 
            dataset.Tables.Add(new DataTable("Win32_SelfRegModuleAction")); 
            dataset.Tables.Add(new DataTable("Win32_ServiceControl")); 
            dataset.Tables.Add(new DataTable("Win32_ServiceSpecification")); 
            dataset.Tables.Add(new DataTable("Win32_ServiceSpecificationService")); 
            dataset.Tables.Add(new DataTable("Win32_SettingCheck")); 
            dataset.Tables.Add(new DataTable("Win32_ShortcutAction")); 
            dataset.Tables.Add(new DataTable("Win32_ShortcutSAP")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareElement")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementAction")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementCheck")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementCondition")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareElementResource")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeature")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureAction")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureCheck")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureParent")); 
            dataset.Tables.Add(new DataTable("Win32_SoftwareFeatureSoftwareElements")); 
            dataset.Tables.Add(new DataTable("Win32_TypeLibraryAction")); 
 
 
            _ClassHash["WMI服务管理"]=new Hashtable(); 
            hash=(Hashtable)_ClassHash["WMI服务管理"]; 
 
            hash["WMI设置"]=new DataSet("WMI设置"); 
            dataset=(DataSet)hash["WMI设置"]; 
            dataset.Tables.Add(new DataTable("Win32_MethodParameterClass")); 
 
            hash["WMI管理"]=new DataSet("WMI管理"); 
            dataset=(DataSet)hash["WMI管理"]; 
            dataset.Tables.Add(new DataTable("Win32_WMISetting")); 
            dataset.Tables.Add(new DataTable("Win32_WMIElementSetting")); 
 
 
            _ClassHash["性能计数器"]=new Hashtable(); 
            hash=(Hashtable)_ClassHash["性能计数器"]; 
 
            hash["格式化性能计数"]=new DataSet("格式化性能计数"); 
            dataset=(DataSet)hash["格式化性能计数"]; 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ASP_ActiveServerPages")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ContentFilter_IndexingServiceFilter")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ContentIndex_IndexingService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_InetInfo_InternetInformationServicesGlobal")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_ISAPISearch_HttpIndexingService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_MSDTC_DistributedTransactionCoordinator")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_NTFSDRV_SMTPNTFSStoreDriver")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfDisk_LogicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfDisk_PhysicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Browser")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Redirector")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_Server")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfNet_ServerWorkQueues")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Cache")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Memory")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Objects")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_PagingFile")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_Processor")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfOS_System")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_FullImage_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Image_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_JobObject")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_JobObjectDetails")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Process")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_ProcessAddressSpace_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_Thread")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PerfProc_ThreadDetails_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PSched_PSchedFlow")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_PSched_PSchedPipe")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RemoteAccess_RASPort")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RemoteAccess_RASTotal")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RSVP_ACSRSVPInterfaces")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_RSVP_ACSRSVPService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_SMTPSVC_SMTPServer")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Spooler_PrintQueue")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TapiSrv_Telephony")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_ICMP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_IP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_NBTConnection")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_NetworkInterface")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_TCP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_Tcpip_UDP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TermService_TerminalServices")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_TermService_TerminalServicesSession")); 
            dataset.Tables.Add(new DataTable("Win32_PerfFormattedData_W3SVC_WebService")); 
 
            hash["原始性能计数"]=new DataSet("原始性能计数"); 
            dataset=(DataSet)hash["原始性能计数"]; 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ASP_ActiveServerPages")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ContentFilter_IndexingServiceFilter")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ContentIndex_IndexingService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_InetInfo_InternetInformationServicesGlobal")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_ISAPISearch_HttpIndexingService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_MSDTC_DistributedTransactionCoordinator")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_NTFSDRV_SMTPNTFSStoreDriver")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfDisk_LogicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfDisk_PhysicalDisk")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Browser")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Redirector")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_Server")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfNet_ServerWorkQueues")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Cache")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Memory")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Objects")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_PagingFile")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_Processor")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfOS_System")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_FullImage_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Image_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_JobObject")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_JobObjectDetails")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Process")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_ProcessAddressSpace_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_Thread")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PerfProc_ThreadDetails_Costly")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_PSched_PSchedFlow")); 
            dataset.Tables.Add(new DataTable("NWin32_PerfRawData_PSched_PSchedPipe")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RemoteAccess_RASPort")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RemoteAccess_RASTotal")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RSVP_ACSRSVPInterfaces")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_RSVP_ACSRSVPService")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_SMTPSVC_SMTPServer")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Spooler_PrintQueue")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TapiSrv_Telephony")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_ICMP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_IP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_NBTConnection")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_NetworkInterface")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_TCP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_Tcpip_UDP")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TermService_TerminalServices")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_TermService_TerminalServicesSession")); 
            dataset.Tables.Add(new DataTable("Win32_PerfRawData_W3SVC_WebService")); 
 
        }
 
        public Hashtable ClassHash 
        
            get{return _ClassHash;} 
        }
 
    }

你可能感兴趣的:(WMI)