USB Port Monitoring Control
USB Monitoring Control - USB Device Data Monitoring ActiveX Component Library

IUsbMonitor.Devices Property

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Getting property value:
Automation:
IDeviceCollection  value = obj.Devices;
Native (C++):
HRESULT  get_ Devices ( [out, retval]   IDeviceCollection * *  pVal) ;
Parameters
pVal Reference to DeviceCollection object. Don't forget to release it.
C++
          CComPtr<IDeviceCollection> pDevices;

          HRESULT hr = m_pUM->get_Devices(&pDevices);
          if(FAILED(hr))
          {
            ATLTRACE("m_pUM->get_Devices failed\n");
            return;
          }
        
Return Value
Automation: Reference to DeviceCollection object. See CSharpSample for more details. Native: S_OK or standard OLE error code.
Remarks
Returns the collection of all USB devices installed on the computer
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.