LsaDeregisterLogonProcess function

The LsaDeregisterLogonProcess function deletes the caller's logon application context and closes the connection to the LSA server.

Syntax

NTSTATUS LsaDeregisterLogonProcess(
  HANDLE LsaHandle
);

Parameters

LsaHandle

Handle obtained from a LsaRegisterLogonProcess or LsaConnectUntrusted call.

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.

The LsaNtStatusToWinError function converts an NTSTATUS code to a Windows error code.

Remarks

If your logon application references the connection handle after calling the LsaDeregisterLogonProcess function, unexpected behavior can result.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header ntsecapi.h
Library Secur32.lib
DLL Secur32.dll

See Also

LsaConnectUntrusted

LsaRegisterLogonProcess