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 Kornfeld Eliyahu Peter 265
1 Sergey Alexandrovich Kryukov 202
2 George Jonsson 185
3 King Fisher 185
4 CPallini 155
0 OriginalGriff 6,223
1 DamithSL 4,724
2 Maciej Los 4,196
3 Kornfeld Eliyahu Peter 3,894
4 Sergey Alexandrovich Kryukov 3,496


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 17 Sep 2012
Copyright © CodeProject, 1999-2014
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