Click here to Skip to main content
11,805,035 members (61,156 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C# API
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
Edited 16-Sep-12 22:52pm
Wes Aday at 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
0 OriginalGriff 315
1 CPallini 210
2 Richard Deeming 200
3 Sergey Alexandrovich Kryukov 168
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web01 | 2.8.151002.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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