Hi,

I have a project where there's a service running and it's serving information to a number of applications. What I want to do is when an app connects to the service it passes a handle to itself so the service can watch or wait on that handle and take appropriate action if the application terminates.

I need something that will work with basic Win32 apps.

Also, if it's not possible in this context, could I create an event in a signaled state, pass it to the service on connection and if the app disappears/crashes/etc. then take appropriate action? I assume that if an app exits or crashes then the event would be released and I can detect that.

Thanks!