Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

CoCreateInstanceEx starts DCOM server in remote machine in session 0 (for windows 7)

$
0
0

When i'm trying to start a DCOM server in a remote machine with CoCreateInstanceEx, it always starts in session 0. This will happen only  if  DCOM server is  configured  to run as  "As Launching user".

Client that is  trying to launch server is running under same user account in session#1 in a different machine.

But if client and server is in same machine, server starts in session#1.

I want the behaviour to be such a way that since client is running under session1, server also needs to be launched in session#1 and not on session#0. Any solution?

Can I Use COAUTHINFO structure to get this behaviour?

Thanks and regards

Minu


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>