Quantcast
Channel: Remote Desktop Services (Terminal Services) Forumu
Viewing all articles
Browse latest Browse all 27533

Custom enpoint enumerator problem(IAudioClient:Initialize() is failing with the error code E_ACCESSDENIED)

$
0
0

Hi,

I am developing a Custom Audio Endpoint Enumerator for a custom protocol as per the guidlines in the linkhttp://msdn.microsoft.com/en-us/library/windows/desktop/ee958171(v=vs.85).aspx

I have implemented all the end point interfaces given in the following link

http://msdn.microsoft.com/en-us/library/windows/desktop/dd379708(v=vs.85).aspx

I have created the end point DLL and signed the DLL with signtool.

I am facing one problem and explained below.

1) Client application get the IMMDevice interface pointer from the end point DLL i.e _pIMMDevice.

2) It calls IMMDevice:Activate() to get the IAudioClient.

_pIMMDevice->Activate(__uuidof(IAudioClient), CLSCTX_INPROC_SERVER, NULL, reinterpret_cast<void **>(&_pIAudioClient));

3) Then client application calls initialize on the audio client interface

HRESULT hr = _pIAudioClient->Initialize(AUDCLNT_SHAREMODE_SHARED,
        AUDCLNT_STREAMFLAGS_EVENTCALLBACK | CLNT_STREAMFLAGS_NOPERSIST,
        _EngineLatencyInMS*10000, 0, _MixFormat, NULL);

problem is here. IAudioClient:Initialize() is failing with the error code E_ACCESSDENIED as HRESULT. I don't know whether this error is due to signing process or due to something else. I have checked the CodeIntegrity logs and I am not finding any error messages with respect to signing.

Please help me on this. I searched this similar issue here and I didn't find a proper solution and description.

I am reposting this issue in multiple forums to get the quicker response and different answers. Please forgive me.

Thanks & Regards,

Ramanujam


Viewing all articles
Browse latest Browse all 27533

Trending Articles