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
LsaGetLogonSessionData
..msdn    Add comment     W32 Constants      Translate this page
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.
Usage:
nSessionDataPtr = 0

= LsaGetLogonSessionData(;
    nSessionListOffset, @nSessionDataPtr)

= LsaFreeReturnBuffer(nSessionDataPtr)
My comment:
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
Word Index links for the LsaGetLogonSessionData :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2013-10-20 18:25:47
Modified: 2013-10-20 18:31:17
Visited in last 7 days: 62
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.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.166.199.178)
1 sec.Function: 'GdipGetImageDecodersSize'
3 sec.Function: 'ReleaseMutex'
4 sec.Function: 'GdipGetImageWidth'
6 sec.Function: 'SendARP'
8 sec.Function: 'PeekMessage'
9 sec.Function: 'GradientFill'
11 sec.Function: 'LsaFreeReturnBuffer'
12 sec.Function: 'FindWindowEx'
16 sec.Function: 'AVIStreamReadFormat'
17 sec.Function: 'DestroyMenu'
Google
Advertise here!