Serial Framework C++ Edition
Public Member Functions | Protected Member Functions | List of all members
CwclUsbMonitor Class Reference

The USB Monitor allows your application to enumerate available USB devices and to monitor changes in its configuration. More...

#include <wclSerialDevices.h>

Public Member Functions

 CwclUsbMonitor ()
 Creates a new USB Monitor component.
 
virtual ~CwclUsbMonitor ()
 Frees the component.
 
int Start ()
 Starts monitoring hardware changes.
 
int Stop ()
 Stops monitoring hardware changes.
 
int Disable (const tstring &Instance) const
 Disables USB device.
 
int Enable (const tstring &Instance) const
 Enabled USB device.
 
int EnumDevices (wclUsbDevices &Devices) const
 Enumerates available USB devices.
 
bool GetMonitoring () const
 Gets the hardware monitoring state.
 
 __declspec (property(get=GetMonitoring)) bool Monitoring
 Gets the hardware monitoring state.
 
__event void OnInserted (void *Sender, const wclUsbDevice &Device)
 The event fires when a new USB device appeared in the system.
 
__event void OnRemoved (void *Sender, const wclUsbDevice &Device)
 The event fires when a USB device has been removed from the system.
 

Protected Member Functions

virtual void MessageReceived (const CwclMessage *const Message)
 The method called when a new notification message received.
 
virtual void DoInserted (const wclUsbDevice &Device)
 Fires the OnInserted event.
 
virtual void DoRemoved (const wclUsbDevice &Device)
 Fires the OnRemoved event.
 

Detailed Description

The USB Monitor allows your application to enumerate available USB devices and to monitor changes in its configuration.