Using Win32 functions in Visual FoxPro Image Gallery
Security
..msdn
ConvertSidToStringSid
GetAce
GetAclInformation
GetFileSecurity
GetLengthSid
GetNamedSecurityInfo
GetSecurityDescriptorDacl
GetSecurityDescriptorOwner
ImpersonateLoggedOnUser
IsValidSid
IsWellKnownSid
LogonUser
LookupAccountName
LookupAccountSid
LsaClose
LsaEnumerateLogonSessions
LsaFreeMemory
LsaFreeReturnBuffer
LsaGetLogonSessionData
LsaLookupSids
LsaOpenPolicy
RevertToSelf
Code examples:
How to enumerate logon sessions on local computer
LsaEnumerateLogonSessions
..msdn    Add comment     W32 Constants      Translate this page
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).
Usage:
STORE 0 TO nSessionCount, nSessionListPtr

= LsaEnumerateLogonSessions(;
    @nSessionCount, @nSessionListPtr)

IF nSessionListPtr <> 0
    LsaFreeReturnBuffer(nSessionListPtr)
ENDIF
My comment:
See also: LsaGetLogonSessionData, LsaFreeReturnBuffer
Word Index links for the LsaEnumerateLogonSessions :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2013-10-20 18:21:24
Modified: 2013-10-20 18:25:37
Visited in last 7 days: 76
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.82.79.109)
12 sec.Function: 'DeregisterEventSource'
23 sec.Function: 'LockResource'
35 sec.Function: 'JetSetColumn'
47 sec.Function: 'PathCombine'
1 min.Function: 'MAPILogoff'
1.22 min.Function: 'CeRegCreateKeyEx'
1.43 min.
Function group: 'Windows Networking'
1.63 min.Function: 'CreateFileMapping'
1.87 min.Function: 'JetBeginTransaction'
2.08 min.Function: 'AddClipboardFormatListener'
Google
Advertise here!