I’m developing a service which will run as System and will process long-running tasks in the background. I now need to display some feedback to the user in the form of a tasktray icon and I would also like to be able to pause/resume the tasks from the tasktray icon so my requirement is to send a message in either direction and receive an arbitrary length data block back in response. A single request/response would be fine but it needs to work in both directions.
This is using C++ (non-MFC) in Windows.
I’ve looked at MIDL/RPC as I’ve used it in the past but I need to define a rigid interface spec first and cannot return arbitrary length data (as far as I am aware).
Are there any suggestions for a library I could use for this?
Thanks,
J
COM is the best solution for RPC in windows. It is very powerful and easy to write. Raw MS-RPC is good too. With both you can return arbitrary length data, see size_is MIDL attribute: