LsaFreeReturnBuffer function (ntsecapi.h)
The LsaFreeReturnBuffer function frees the memory used by a buffer previously allocated by the LSA.
Syntax
NTSTATUS LsaFreeReturnBuffer(
[in] PVOID Buffer
);
Parameters
[in] 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
Requirement | Value |
---|---|
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 |