Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. How can I set DCOMCNFG Settings programmatically?

How can I set DCOMCNFG Settings programmatically?

Scheduled Pinned Locked Moved COM
helpquestioncsharpc++com
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Danillo
    wrote on last edited by
    #1

    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

    J 1 Reply Last reply
    0
    • D Danillo

      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

      J Offline
      J Offline
      Jason Henderson
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups