Reputation: 1
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
Reputation: 758
Creating Named Shared Memory
http://msdn.microsoft.com/en-us/library/aa366551(v=vs.85).aspx
see also Fully managed shared memory .NET implementations?
Upvotes: 1
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