IMMDeviceEnumeratorGetDefaultAudioEndpoint Method
Retrieves the default audio endpoint for the specified data-flow direction and role.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[PreserveSigAttribute]
HResult GetDefaultAudioEndpoint(
[InAttribute] EDataFlow dataFlow,
[InAttribute] ERole role,
[OutAttribute] IMMDevice^% refDevice
)
No code example is currently available or this language may not be supported.
- dataFlow EDataFlow
-
The EDataFlow direction for the endpoint device.
- role ERole
-
The ERole of the endpoint device.
- refDevice IMMDevice
-
The IMMDevice interface of the default audio endpoint device.
HResult
If the method succeeds, it returns
S_OK.
If it fails, it returns an
HResult value.