LSA_ALLOCATE_LSA_HEAP callback function (ntsecpkg.h)

Allocates memory on the heap. Some information passed back to the LSA is expected to be allocated using this function. Memory allocated with this routine must be deallocated with the FreeLsaHeap function.

Syntax

LSA_ALLOCATE_LSA_HEAP LsaAllocateLsaHeap;

PVOID LsaAllocateLsaHeap(
  [in] ULONG Length
)
{...}

Parameters

[in] Length

Number of bytes to allocate from the heap.

Return value

This function returns a pointer to the allocated heap memory. If memory could not be allocated, the function returns NULL.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header ntsecpkg.h

See also

LSA_DISPATCH_TABLE

LSA_SECPKG_FUNCTION_TABLE