How can I set DCOMCNFG Settings programmatically?
-
Hi there, We have an application that accesses OPC Servers on an ethernet network. OPC (Ole for process control) uses DCOM to transmit information. To get a connection through DCOM we need to change certain security settings with the DCOMCNFG tool. Because this is very error prone for customers, I need a way to do this programmatically during setup. Does anybody have code snippets of how to change these settings or does anybody know which methods to call to do so? I prefer examples in C# or C++ but if you have any information it would help me anyway. Best regards Daniel
-
Hi there, We have an application that accesses OPC Servers on an ethernet network. OPC (Ole for process control) uses DCOM to transmit information. To get a connection through DCOM we need to change certain security settings with the DCOMCNFG tool. Because this is very error prone for customers, I need a way to do this programmatically during setup. Does anybody have code snippets of how to change these settings or does anybody know which methods to call to do so? I prefer examples in C# or C++ but if you have any information it would help me anyway. Best regards Daniel
I haven't figured out some of the newer WindowsXP SP2 security settings, but most of the older ones are located in the registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole.
"Live long and prosper." - Spock
Jason Henderson
blog