I have written some "MSGINA" notification packages in assembler but never written a program designed to be a Windows service.
32BIT XP/W7 is the target OS
W7 & Vista will no longer use the GINA DLL notification packages but
XP/W7/Vista all will use the SCM notification method which is why I need to learn what unique requirements a Windows "service" requires.
1. If it is a service that runs without ending - till shutdown - how do I make the service "sleep" or not consume resources ? while waiting to be notified of the 2 events I want to react to ?
2. I will want to register it to receive "wts_session_logon" and wts_session_unlock" events and then simply write an event log entry.
No desktop - no message boxes - no UI whatsoever.
Simple - right ?
Does anyone have sample ASSEMBLER code that I copy/model after ?