LSA_ALLOCATE_PRIVATE_HEAP callback function (ntsecpkg.h)

Allocates memory on the private heap.

Memory allocated with this routine must be deallocated with the FreePrivateHeap function.

Syntax

LSA_ALLOCATE_PRIVATE_HEAP LsaAllocatePrivateHeap;

PVOID LsaAllocatePrivateHeap(
  [in] SIZE_T 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.

Remarks

A pointer to the AllocatePrivateHeap function is available in the LSA_SECPKG_FUNCTION_TABLE structure received by the SpInitialize function.

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

SpInitialize