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:
Accessing LSA Policy object (Local Security Authority)
LsaOpenPolicy
..msdn    Add comment     W32 Constants      Translate this page
The LsaOpenPolicy function opens a handle to the Policy object on a local or remote system.
Code examples:
Accessing LSA Policy object (Local Security Authority)
Declaration:
NTSTATUS LsaOpenPolicy(
  PLSA_UNICODE_STRING SystemName,
  PLSA_OBJECT_ATTRIBUTES ObjectAttributes,
  ACCESS_MASK DesiredAccess,
  PLSA_HANDLE PolicyHandle
);

FoxPro declaration:
DECLARE INTEGER LsaOpenPolicy IN advapi32;
    STRING    SystemName,;
    STRING  @ ObjectAttributes,;
    INTEGER   DesiredAccess,;
    INTEGER @ PolicyHandle

Parameters:
SystemName
[in] Pointer to an LSA_UNICODE_STRING structure containing the name of the target system.

ObjectAttributes
[in] Pointer to an LSA_OBJECT_ATTRIBUTES structure that specifies the connection attributes.

DesiredAccess
[in] An access mask that specifies the requested access rights.

PolicyHandle
[in, out] Pointer to an LSA_HANDLE variable that receives a handle to the Policy object.
Return value:
If the function succeeds, the return value is STATUS_SUCCESS (0).
Word Index links for the LsaOpenPolicy :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-11-23 11:19:01
Modified: 2003-11-23 11:20:53
Visited in last 7 days: 16
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.81.79.128)
13 sec.Function: 'CeGetVersionEx'
25 sec.Function: 'SCardGetProviderId'
36 sec.Function: 'GetLengthSid'
47 sec.Function: 'GetProfileString'
58 sec.Function: 'CeRegDeleteKey'
1.15 min.Function: 'SetJob'
1.35 min.
Function group: 'GDI+ Bitmap'
1.55 min.Function: 'LockFile'
1.75 min.Function: 'RegCloseKey'
1.95 min.Function: 'Process32Next'
Google
Advertise here!