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

How to Initialize the USBMC Library

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >

This section describes the steps you need to carry in order to successfully initialize the USBMC library.

Native Environment

  1. Include the hhdUSBMC.h file in one of your source files:
    C++
    #include <hhdUSBMC.h>
              
  2. Declare the pointer to the IUsbMonitor interface.
    C++
    CComPtr<IUsbMonitor> pUsbMonitor;
              
  3. Create the instance of the UsbMonitor object.
    C++
    pUsbMonitor.CoCreateInstance(__uuidof(UsbMonitor));
              

    Remember that you cannot create more than one UsbMonitor object in single process. Although, you can have as many Monitor objects as you need.

  4. Link to hhdUSBMC.lib library to eliminate unresolved externals for library GUIDs.

Managed Environment

  1. Use your language-provided tools to add the reference to the USB Monitoring Control library into your project.
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.