I have written a program that needs to be running 100% of the time the computer is running. It starts from the RunServices section of the W95 Registry so it loads before the log-on screen, but all RunServices programs are closed on logoff.
W32s help says that I need to call RegisterServiceProcess so my app isn't closed, but it gives no other information on it. I would imagine it is in a dll, probably kernel32.dll - but I have no idea how to access this.
I have tried looking for the WM_ENDSESSION and WM_QUERYENDSESSION messages to see if they are passing me the "yes, user is logging off" message, but my app gets closed whatever I do then and sometimes the messages don't even come through.