Export (0) Print
Expand All
Expand Minimize

LsaFreeReturnBuffer function

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

Syntax


NTSTATUS LsaFreeReturnBuffer(
  _In_  PVOID Buffer
);

Parameters

Buffer [in]

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]

Header

Ntsecapi.h

Library

Secur32.lib

DLL

Secur32.dll

See also

LsaLogonUser
LsaCallAuthenticationPackage

 

 

Community Additions

ADD
Show:
© 2015 Microsoft