Accessing Remote Objects at runtime

Hi ALL
I have to access a resource ( MUTEX ) on a remote
machine which can only be accessed by a network user
who is also the local administrator of the remote PC.
Now the problem is that if on the client the user
which of course is a network user does not belong to
the local administration group of that PC, then he
should be provided with a window where he can type the
user name and password of a network user and hence
access that resource . How to change the access token
of the calling process…?
The client and Server Process ( where the Mutex
resides ) are communicating through DCOM i.e., I
instantiate the Server process through
CoCreateInstanceEx()…
One other thing to ask that under above
situation the instantiated process( interface )
belongs to the client user or th server user logged
on.


Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

> Now the problem is that if on the client the user

which of course is a network user does not belong to
the local administration group of that PC, then he
should be provided with a window where he can type the
user name and password of a network user and hence
access that resource . How to change the access token
of the calling process…?
The client and Server Process ( where the Mutex
resides ) are communicating through DCOM i.e., I
instantiate the Server process through
CoCreateInstanceEx()…

Read about CoSetProxyBlanket to do this.

Max