In Windows, the following sections and functions are used to list device-related articles.
[Related materials]
Device information sets:
Http://msdn.microsoft.com/zh-cn/library/ff541247 (V = vs.85). aspx
Device Interface classes: http://msdn.microsoft.com/zh-cn/library/ff541339 (V = vs.85). aspx
Device setip classes: http://msdn.microsoft.com/zh-cn/library/ff541509 (V = vs.85). aspx
[Main functions]
Setupdigetclassdevs () // gets a collection of device information handles related to the specified guid. The GUID of the device type has a defined http://msdn.microsoft.com/zh-cn/library/windows/hardware/ff551069 (V = vs.85). aspx In header files such as winioctl. h and WDM. h.
Setupdienumdeviceinterfaces () // enumerative Device
Setupdigetdeviceinterfacedetail () // obtain the device interface details (device path)
Iosetdeviceinterfacestate () // sets the device status, enable/disable
Iogetdeviceinterfaces () // You can enumerate devices with disabled
[Internal structure of the device information set]
The internal structure of a device information set: