CoCreateInstanceEx returns E_ACCESSDENIED

following pink a call made from client.

hr = CoCreateInstanceEx(CLSID_ProESEServer, NULL, dwClsCtx,&srvinfo,

sizeof(mqi)/sizeof(mqi[0]),&mqi[0]);

Returns E_ACCESSDENIED

1) calling Component (CLSID_ProESEServer)on a computer of same network

Its a DCOM service.

Any help would be appreciated.

[585 byte] By [Rups11] at [2007-12-24]
# 1
Try calling CoInitializeSecurity before CoCreateInstance.

{

CoInitializeSecurity( NULL, -1, NULL, NULL,

RPC_C_AUTHN_LEVEL_NONE,


RPC_C_IMP_LEVEL_IDENTIFY, NULL, EOAC_NONE, NULL );

HRESULT hr;

hr = CoCreateInstanceEx(CLSID_ProESEServer, NULL,

dwClsCtx,&srvinfo,

sizeof(mqi)/sizeof(mqi[0]),&mqi[0]);

}

MON205 at 2007-8-31 > top of Msdn Tech,Visual C++,Visual C++ Language...