Sam Youtsey
Sam Youtsey

Reputation: 884

Where can I find a good description on how to use COM with Windows Services?

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!

Upvotes: -1

Views: 59

Answers (1)

sharptooth
sharptooth

Reputation: 170509

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.

Upvotes: 0

Related Questions