GetTSAudioEndpointEnumeratorForSession callback function

Returns a reference to an audio endpoint enumerator for the specified session ID. Consumers of this audio endpoint enumerator, such as MMDevAPI.dll, call this function to retrieve an audio endpoint enumerator in a Remote Desktop Services session.


HRESULT GetTSAudioEndpointEnumeratorForSession(
  _In_  DWORD               SessionId,
  _Out_ IMMDeviceEnumerator **ppEndpointEnumerator


SessionId [in]

The identifier of the Remote Desktop Services session.

ppEndpointEnumerator [out]

The address of a pointer to an IMMDeviceEnumerator interface.

Return value

If the method succeeds, it returns S_OK.


This function is not defined in a header file. You should implement and export this function in your custom endpoint enumerator and use the signature shown in the syntax block earlier in this topic.


Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008 R2

See also

Implementing a Custom Audio Endpoint Enumerator