2011. 11. 9. 09:04
.NET Framework
The Win32_USBHubWMI class represents the management characteristics of a universal serial bus (USB) hub.
The following syntax is simplified from Managed Object Format (MOF) code and includes all of the inherited properties. Properties are listed in alphabetic order, not MOF order.
class Win32_USBHub : CIM_USBHub
{
uint16 Availability;
string Caption;
uint8 ClassCode;
uint32 ConfigManagerErrorCode;
boolean ConfigManagerUserConfig;
string CreationClassName;
uint8 CurrentAlternateSettings;
uint8 CurrentConfigValue;
string Description;
string DeviceID;
boolean ErrorCleared;
string ErrorDescription;
boolean GangSwitched;
datetime InstallDate;
uint32 LastErrorCode;
string Name;
uint8 NumberOfConfigs;
uint8 NumberOfPorts;
string PNPDeviceID;
uint16 PowerManagementCapabilities[];
boolean PowerManagementSupported;
uint8 ProtocolCode;
string Status;
uint16 StatusInfo;
uint8 SubclassCode;
string SystemCreationClassName;
string SystemName;
uint16 USBVersion;
};
{
uint16 Availability;
string Caption;
uint8 ClassCode;
uint32 ConfigManagerErrorCode;
boolean ConfigManagerUserConfig;
string CreationClassName;
uint8 CurrentAlternateSettings;
uint8 CurrentConfigValue;
string Description;
string DeviceID;
boolean ErrorCleared;
string ErrorDescription;
boolean GangSwitched;
datetime InstallDate;
uint32 LastErrorCode;
string Name;
uint8 NumberOfConfigs;
uint8 NumberOfPorts;
string PNPDeviceID;
uint16 PowerManagementCapabilities[];
boolean PowerManagementSupported;
uint8 ProtocolCode;
string Status;
uint16 StatusInfo;
uint8 SubclassCode;
string SystemCreationClassName;
string SystemName;
uint16 USBVersion;
};
아래 Win32 관련 클래스들정보를 참고 할수 있다..
USB 관련 클래스
Win32_DiskDrive
Win32_DiskPartition
Win32_LogicalDisk
Win32_USBHub
위정보를 통해 USB 관련 정보를 추출 및 제어 가능하다.
출처 : http://msdn.microsoft.com/en-us/library/windows/desktop/aa394506(v=VS.85).aspx