How to cancel the service?

Mar 26, 2009 at 5:12 AM
It seems I post too many.

But...I can not figure out.

I followed the example you posted yesterday to write some samples running on my device, it works fine.  BBBut I can not stop it, every time I start the program the service will run in the backend.
I was wondering if you could post an example with start service and terminate it.

Thank you very much
Coordinator
Mar 26, 2009 at 9:00 AM
Hi,

I've published the Sourcecode for the Managed Services Manager yesterday. It shows, how this works.
It is just as simple as sending a WM Message (in this case to the MessageWindow, owned by the running Service) to stop it.

Just look at the Sourcecode provided. If it isn't sufficient for you please get back to me here.

Cheers, Peter