Hi,
i m not much good in windows services. wanna create one so when a user logIn (to his system) it inserts the time with userid in Sql server db. and same at logoff

How catch event for logon/off?

Thanx

Code:
protected override void OnStart(string[] args)
        {   
            eventLog1.WriteEntry("In OnStart Service");


            SqlConnection con =
...