I'm trying to write a program in C, that can detect when some Windows services (aka. NT services) are started or stopped.
There seems to be a function NotifyServiceStatusChange, but that's only available on Vista and Windows 7. I'm trying to do this on Win XP, so what's the best way? Is there any other than continuous polling?
edit:
Is anybody able to give answer in C? I'm also ok with C++, but I'd like to stay away from scripting.