IMMDeviceEvent

The IMMDeviceEvent class is the class for device events. These events get generated by devices for device-specific purposes.


IMMDeviceEvent - Member Functions and Data by Group

Constructors & Destructor

You can construct and destruct objects of this class.


[view class]
~IMMDeviceEvent
public:
virtual ~IMMDeviceEvent()

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
IMMDeviceEvent
public:
IMMDeviceEvent(const IEvent& event)

Although you can construct objects of this class, typically IMMDeviceHandler::dispatchHandlerEvent creates objects of this class from an object of the class IEvent or another IMMDeviceEvent object.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


Event Information

Use these members to return the device, event code, and event data for the device that generated this event.


[view class]
device
public:
IMMDevice* device() const

Returns a pointer to the device that this event is from.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
eventCode
public:
unsigned short eventCode() const

Returns the device-specific event code.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


[view class]
eventData
public:
void* eventData() const

Returns the device-specific event data structure.

Supported Platforms

Windows OS/2 AIX
Yes Yes No


IMMDeviceEvent - Inherited Member Functions and Data

Inherited Public Functions

IEvent

Inherited Public Data

Inherited Protected Functions

Inherited Protected Data