RE: Retrieving Logon Date and Time

From: Raj (Raj_at_discussions.microsoft.com)
Date: 06/25/04


Date: Fri, 25 Jun 2004 08:40:32 -0700


 Get 'Access Token' by calling - OpenProcessToken
 Get 'Logon Session ID' by calling - GetTokenInformation (TokenOwner InfoClass,
                                                                  and TOKEN_ORIGIN buffer)
Finally Call "LsaGetLogonSessionData()" .

SECURITY_LOGON_SESSION_DATA::LogonTime will contain the logon Date & Time.

- &Raj.

 
"Brandon Swamy" wrote:

> I'm trying to retrieve the logon date and time of a user without using
> NetUserGetInfo(). Is there any other way of doing this? Thanks in advance
> for any help.
>
>
>