Hi
I think you may try to take a look at the link below, follow the link you
can download the vs sample which will do the job in the VC++.
206484 INFO: DCOMCNFG Programmatically Manipulates DCOM Server Permissions
http://support.microsoft.com/?id=206484
Use the tool we can use the command line as below to set the identity for
DCOM server whose appid is {12345678-1234-1234-1234-00aa00bbf7c7}
dcomperm -runas {12345678-1234-1234-1234-00aa00bbf7c7} redmond\jdoe password
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
"Peter Huang" [MSFT] - 20 Jan 2005 05:42 GMT
Hi
BTW: so far there is no .NET wrap to do the job. We need to use the
unmanaged API as the link below do to do the job.
If you still have any concern, please feel free to post here.
Best regards,
Perter Huang
Microsoft Online Partner Support

Signature
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.