We gave up on DCOM for various reasons - this was one of them. I can't remebers where the password is stored in the registry but when I did find it, it was encrypted. If it's the same everytime then I suppose you are safe to set it. >From: Tom Munro Glass <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Multiple recipients of list delphi <[EMAIL PROTECTED]> >Subject: [DUG]: Setting DCOM config params from Delphi >Date: Wed, 22 Sep 1999 08:10:33 +0100 > >I've developed a number of automation server applications which must run as >a predefined user. At present I'm using DCOMCNFG to set the Identity to use >this special user account. > >Can anyone please tell me how to set up the Identity from within a Delphi >application? > >It seems that DCOMCNFG adds a "RunAs" value in the >HKEY_CLASSES_ROOT\AppId\{My App Id}, but it must also be storing the >password somewhere, and I've got no idea where that might be! > > >================================================================== > >Tom Munro Glass > >+----------------------------------------------------------------+ >| E-mail: | >| Internet: [EMAIL PROTECTED] | >| Web sites: | >| TMG CONSULTANCY: http://www.tmgcon.com | >| Tewkesbury Web: http://www.tmgcon.com/tewksweb | >+----------------------------------------------------------------+ >--------------------------------------------------------------------------- > New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] > Website: http://www.delphi.org.nz ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz