Click here to Skip to main content
15,888,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
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????????
Posted
Updated 16-Sep-12 22:52pm
v5
Comments
[no name] 17-Sep-12 7:10am    
"why do not any one reply to my question?", could be any number of reasons. You don't know how to ask a question, your question does not make any sense, the person that could decipher what it is that you are asking is still asleep, you did not wait long enough to get an answer, you only used 8 question marks when you should have used 9, you used 8 question marks when 1 was more than enough, etc, etc, etc.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900