USB Monitoring Control - ActiveX Component Library for USB Data Monitoring, API for Software Developers
Download USB Monitoring Control Hide this button

How to Create a Monitoring Object

This section describes the steps you need to carry in order to create a monitor object.

  1. Initialize the UsbMonitor object, as described in the this tutorial.

  2. Call the IUsbMonitor.CreateMonitor method to create a monitor object and receive the IMonitoring interface.

    CComPtr<IMonitoring> pMonitor;
    pUsbMonitor->CreateMonitor(&pMonitor);
    
    hhdusbmcLib.Monitoring monitor = mc.CreateMonitor();
    

You can create as many monitor objects as you need. Each Monitor object can be attached to one USB device at a time and can have as many native listeners or event handlers attached, as you need.