I want to create a winservice to save log in and log out time of all accounts in a domain.
I have tried OnSessionChange() and check out the SessionChangeDescription property but it sometimes does not work correctly, so i decided to use api functions to do that.
In order to my searches LsaGetLogonSessionData and maybe ISensLogon2 functions can return what i want.
but the question is that where should i use this function? Should i call this function in an event or it can diagnose the log ins and log outs itself?
please help me....
Edit : why do not any one reply to my question????????