XUserGetDefaultAudioEndpointUtf16
Retrieves the default audio endpoint for a specific user.Syntax
Parameters
userType: XUserLocalId
The local ID of the user to get the default audio endpoint for. defaultAudioEndpointKind
Type: XUserDefaultAudioEndpointKind
An enumeration value that specifies whether the user’s default audio endpoint renders or captures audio. endpointIdUtf16Count
Type: size_t
The wchar_t count of the buffer that the endpointIdUtf16 parameter points to. Pass XUserAudioEndpointMaxUtf16Count. endpointIdUtf16 _Out_writes_to_(endpointIdUtf16Count,endpointIdUtf16Used)
Type: wchar_t
Contains the ID of the user’s default audio endpoint. endpointIdUtf16Used _Out_opt_
Type: size_t* Contains the actual wchar_t count of the ID that the endpointIdUtf16 parameter returns.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code. For a list of error codes, see Error Codes.Remarks
This function isn’t safe to call on a time-sensitive thread. For more information, see Time-sensitive threads.
