The IMMDeviceNotifyHandler class processes events for all IMMDevices.
This class is designed to handle events that require the IMMDevice to generate a notification. If notifications are enabled for this class, a notification is generated and sent to all observers when the proper conditions for the specific notification exist.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~IMMDeviceNotifyHandler()
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
IMMDeviceNotifyHandler()
This is the default constructor and accepts no parameters.
Windows | OS/2 | AIX |
Yes | Yes | No |
Event-dispatching members evaluate an event to determine if it is appropriate for this handler object to process it.
![]() |
protected:
virtual bool dispatchHandlerEvent(IEvent& anEvent)
Notifies observers if any of the following events are received:
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
protected:
IMMDeviceNotifyHandler* notificationHandler() const
Returns a pointer to the notification handler being used by the device.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
protected:
IMMDeviceNotifyHandler& setNotificationHandler( IMMDeviceNotifyHandler* notifyHandler )
Sets the notification handler to be used by the device.
Windows | OS/2 | AIX |
Yes | Yes | No |
virtual ~IHandler()
virtual IString asDebugInfo() const
virtual IString asString() const
virtual IHandler& disable()
virtual IHandler& enable(bool enable = true)
virtual IHandler& handleEventsFor(IWindow* window)
IHandler()
bool isEnabled() const
virtual IHandler& stopHandlingEventsFor(IWindow* window)
virtual ~IWindowNotifyHandler()
IWindowNotifyHandler()
virtual IEventResult defaultProcedure(IEvent& event)
virtual bool dispatchHandlerEvent(IEvent& event) = 0