Click here to Skip to main content
13,598,829 members
Rate this:
Please Sign up or sign in to vote.
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 16-Sep-12 20:12pm
Updated 16-Sep-12 22:52pm
Wes Aday 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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Cookies | Terms of Service
Web03-2016 | 2.8.180621.3 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100