IMMDeviceCollection interface

The IMMDeviceCollection interface represents a collection of multimedia device resources. In the current implementation, the only device resources that the MMDevice API can create collections of are audio endpoint devices.

A client can obtain a reference to an IMMDeviceCollection interface instance by calling the IMMDeviceEnumerator::EnumAudioEndpoints method. This method creates a collection of endpoint objects, each of which represents an audio endpoint device in the system. Each endpoint object in the collection supports the IMMDevice and IMMEndpoint interfaces. For more information, see IMMDeviceEnumerator Interface.

For a code example that uses the IMMDeviceCollection interface, see Device Properties.

Members

The IMMDeviceCollection interface inherits from the IUnknown interface. IMMDeviceCollection also has these types of members:

Methods

The IMMDeviceCollection interface has these methods.

MethodDescription
GetCount

Retrieves a count of the devices in the device collection.

Item

Retrieves a pointer to the specified item in the device collection.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Mmdeviceapi.h

See also

IMMDevice Interface
IMMDeviceEnumerator Interface
IMMDeviceEnumerator::EnumAudioEndpoints
IMMEndpoint Interface
MMDevice API

 

 

Community Additions

ADD
Show:
© 2015 Microsoft