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

IUsbMonitor Interface

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Interface Declaration:
interface IUsbMonitor : IDispatch
Remarks
IUsbMonitor Interface. This is the first interface you get from the usbmc library. It is used to get the list of installed USB devices and create Monitor objects.
Note for Implementers
You do not implement this interface. It is implemented by the UsbMonitor object.
Note for Users
You get this interface when you create the UsbMonitor object. It is a central entry point to the monitoring library.
C++
      CComPtr<IUsbMonitor>	pUM;
      HRESULT hr = pUM.CoCreateInstance(__uuidof(UsbMonitor));
      if (FAILED(hr))
      {
        MessageBox(_T("Error opening the USBMC control"),_T("Error"),MB_ICONSTOP | MB_OK);
        return TRUE;
      }
      // use pUM here
    
C#
      hhdusbmcLib.UsbMonitor mc = new hhdusbmcLib.UsbMonitor();
      // use mc here
    
Properties
PropertyDescription
DevicesReturns the collection of all USB devices installed on the computerThis property is read only.
Methods
MethodDescription
CreateMonitorCreates a new monitor class that is ready to be attached to USB device
DisplayActivationDialogDisplays an activation dialog, allowing user to select a license file to activate the library.
InstallLicenseInstalls a license located in a given file.
InstallLicenseInMemoryInstalls a license located in a memory buffer (for managed code).
InstallLicenseInMemoryNativeInstalls a license located in a memory buffer (for native code).
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.