블로그 이미지
Sunny's

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

Notice

'win32'에 해당되는 글 1

  1. 2011.11.09 Win32_USBHubWMI class USB 정보
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;
};


아래 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

posted by Sunny's
prev 1 next