Search code examples
c++windowsdcom

DCOM CoCreateInstanceEx E_ACCESSDENIED


I am working with 2 PCs, both running both running Windows XP. Both have the same application registered with its DCOM interface. Now i'm trying to start the program from one computer on the other.

First I called CoInitializeSecurity, after that CoCreateInstanceEx, but the result is a E_ACCESSDENIED.

I did also run dcomcnfg, to give anyone access, but it didn't help.


Solution

  • You have to add the user explicitly and give him all permissions. After that it works.