-1

I'm looking to pass parameters into a Windows Service not only upon launch but while it's still running as well. I've heard the best way to do this would be through the COM but I have no idea where to even get started. Are there any good places you can recommend where I can find some helpful information about how to get started with the COM and Windows Services? Thanks in advance!

sharptooth
  • 167,383
  • 100
  • 513
  • 979
Sam Youtsey
  • 884
  • 2
  • 12
  • 33

1 Answers1

0

You can't just get a piece of duct tape and magically "attach COM" to any Windows service. While it is true that you can host a COM object in COM+ and activate it in a Windows service process, but this is not just adding new functionality - it will change the behavior significantly.

In addition to named pipes you can use RPC - start RPC server in the service and make calls to it from the other process.

Community
  • 1
  • 1
sharptooth
  • 167,383
  • 100
  • 513
  • 979