LsaFreeReturnBuffer function

The LsaFreeReturnBuffer function frees the memory used by a buffer previously allocated by the LSA.

Syntax

NTSTATUS LsaFreeReturnBuffer(
  PVOID Buffer
);

Parameters

Buffer

Pointer to the buffer to be freed.

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

Some of the LSA authentication functions allocate memory buffers to hold returned information, for example, LsaLogonUser and LsaCallAuthenticationPackage. Your application should call LsaFreeReturnBuffer to free these buffers when they are no longer needed.

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

LsaCallAuthenticationPackage

LsaLogonUser