This section describes the steps you need to carry in order to retrieve the properties of the USB device.
CComBSTR Location,Name,Manufacturer,DeviceKey; pDevice->get_Location(&Location); pDevice->get_Name(&Name); pDevice->get_Manufacturer(&Manufacturer); pDevice->get_Key(&DeviceKey); CComVariant bPresent; pDevice->get_Present(&bPresent.boolVal);
hhdusbmcLib.Device device = monitor.ConnectedDevice; string strName = device.Name; bool bPresent = device.Present; string strLocation = device.Location; string strMan = device.Manufacturer; string strKey = device.Key; Icon ico = Icon.FromHandle(device.Icon);