Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.16 KB

LsaEnumerateLogonSessions.md

File metadata and controls

53 lines (35 loc) · 1.16 KB

Home

Function name : LsaEnumerateLogonSessions

Group: Security - Library: secur32


Retrieves the set of existing logon session identifiers (LUIDs) and the number of sessions.


Code examples:

How to enumerate logon sessions on local computer

Declaration:

NTSTATUS NTAPI LsaEnumerateLogonSessions(
  _Out_  PULONG LogonSessionCount,
  _Out_  PLUID *LogonSessionList
);  

FoxPro declaration:

DECLARE INTEGER LsaEnumerateLogonSessions IN secur32;
	INTEGER @LogonSessionCount,;
	INTEGER @LogonSessionList  

Parameters:

LogonSessionCount [out] Pointer to a long integer that receives the number of elements returned in the array returned in LogonSessionList parameter.

LogonSessionList [out] Address of a pointer to a LUID. The pointer receives the first element of an array of logon session identifiers.


Return value:

If the function succeeds, the return value is STATUS_SUCCESS (0).


Comments:

See also: LsaGetLogonSessionData, LsaFreeReturnBuffer