Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 899 Bytes

LsaClose.md

File metadata and controls

41 lines (28 loc) · 899 Bytes

Home

Function name : LsaClose

Group: Security - Library: advapi32


The LsaClose function closes a handle to a Policy or TrustedDomain object.


Code examples:

Accessing LSA Policy object (Local Security Authority)

Declaration:

NTSTATUS LsaClose(
  LSA_HANDLE ObjectHandle
);  

FoxPro declaration:

DECLARE INTEGER LsaClose IN advapi32;
	INTEGER ObjectHandle  

Parameters:

ObjectHandle Handle to a Policy object returned by the LsaOpenPolicy function or to a TrustedDomain object returned by the LsaOpenTrustedDomainByName function.


Return value:

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