LsaClose Function

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

Syntax

C++
NTSTATUS LsaClose(
  __in  LSA_HANDLE ObjectHandle
);

Parameters

ObjectHandle [in]

A handle to a Policy object returned by the LsaOpenPolicy function or to a TrustedDomain object returned by the LsaOpenTrustedDomainByName function. Following the completion of this call, the handle is no longer valid.

Return Value

If the function succeeds, the return value is STATUS_SUCCESS.

If the function fails, the return value is an NTSTATUS code. For more information, see LSA Policy Function Return Values.

You can use the LsaNtStatusToWinError function to convert the NTSTATUS code to a Windows error code.

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderNtsecapi.h
LibraryAdvapi32.lib
DLLAdvapi32.dll

See Also

LsaOpenPolicy

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags :


Page view tracker