Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.42 KB

LsaGetLogonSessionData.md

File metadata and controls

54 lines (36 loc) · 1.42 KB

Home

Function name : LsaGetLogonSessionData

Group: Security - Library: secur32


Retrieves information about a specified logon session.


Code examples:

How to enumerate logon sessions on local computer

Declaration:

NTSTATUS NTAPI LsaGetLogonSessionData(
  _In_   PLUID LogonId,
  _Out_  PSECURITY_LOGON_SESSION_DATA *ppLogonSessionData
);  

FoxPro declaration:

DECLARE INTEGER LsaGetLogonSessionData IN secur32;
	INTEGER LogonId,;
	INTEGER @ppLogonSessionData  

Parameters:

LogonId [in] Specifies a pointer to a LUID that identifies the logon session whose information will be retrieved.

ppLogonSessionData [out] Address of a pointer to a SECURITY_LOGON_SESSION_DATA structure containing information on the logon session specified by LogonId.


Return value:

If the function succeeds, the return value is STATUS_SUCCESS.


Comments:

The SECURITY_LOGON_SESSION_DATA structure is allocated by the LSA. When the information is no longer needed, call the LSAFreeReturnBuffer function to free the memory used by this structure.

See also: LsaEnumerateLogonSessions, LSAFreeReturnBuffer.