Using function in Sevice

Hi All,
  I have already written a service under MFC containing a certain function. I want to write a program under VC++  that calls this function from the service so that I can pass parameters to the function and retrieve the return Value from it.

Thanx for your fast response,
Amr Adel
amradel_79Asked:
Who is Participating?
 
jkrCommented:
Check out http://msdn.microsoft.com/library/en-us/vcsample98/html/vcsmprpcsvc.asp ("RPCsvc: Windows NT System Service That Uses RPC") - this sample illustrates how to do that. Another sample is presented in http://msdn.microsoft.com/library/en-us/dnsecure/html/msdn_homegrwn.asp ("A Homegrown RPC Mechanism") which could also be used as an alternative approach. Apart from these two, http://www.codeproject.com/threads/#Inter%2DProcess+Communication ("Inter-Process Communication") has a lot of samples that describe how to communicate between processes.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.