CreateRemoteComObject + username/password
Posted on 2007-07-30
I have a Delphi 6 app that attaches to an OPC server via CreateRemoteComObject it works fine as long as the server has been configured to allow access to EVERYONE via DCOMCNFG on the remote machine. I now have a customer who is complaining that they don't want to open up access to EVERYONE for security purposes. My question is: is there a way to include a user name/password in the CreateRemoteComObject function call? I seem to remember something about appending a username/password to the MachineName parameter, but I'm having no luck re-discovering that info via Google.