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
hhdusbmcLib.UsbMonitor mc = new hhdusbmcLib.UsbMonitor();
// use mc here
| Property | Description |
|---|---|
| Devices | Returns the collection of all USB devices installed on the computerThis property is read only. |
| Method | Description |
|---|---|
| CreateMonitor | Creates a new monitor class that is ready to be attached to USB device |
| DisplayActivationDialog | Displays an activation dialog, allowing user to select a license file to activate the library. |
| InstallLicense | Installs a license located in a given file. |
| InstallLicenseInMemory | Installs a license located in a memory buffer (for managed code). |
| InstallLicenseInMemoryNative | Installs a license located in a memory buffer (for native code). |