Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# API login
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 21:12pm
Edited 16-Sep-12 23:52pm
v5
Comments
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 280
1 Sebastiaan Meijerink 145
2 Sergey Alexandrovich Kryukov 108
3 Abhinav S 94
4 BillWoodruff 85
0 Sergey Alexandrovich Kryukov 6,558
1 OriginalGriff 6,268
2 Peter Leow 2,534
3 Abhinav S 2,344
4 Maciej Los 2,297


Advertise | Privacy | Mobile
Web03 | 2.8.150414.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