Ali Doosty
Ali Doosty

Reputation: 1

Can I call a running Windows Service function?

Can I call a windows service function with a specific return type?

I need the return type to be an object so if I change anything in it, the other program will find it out. i mean both programs use the same reference to the same object ! Is it possible ?

Upvotes: 0

Views: 1284

Answers (2)

Stephen Chung
Stephen Chung

Reputation: 14605

I am assuming that you want to call a function in a Windows service (a program) from another program and have the called function return a result to the calling program?

This is a typical case for IPC (inter-process communication). You can do it via a wide variety of choices: Remoting, listening to a TCP socket, named pipes, MSMQ etc., or WCF which supports all of the above.

Upvotes: 2

Related Questions