Edit

Share via


LSA_PROTECT_MEMORY callback function (ntsecpkg.h)

Encrypts the specified memory buffer.

Syntax

LSA_PROTECT_MEMORY LsaProtectMemory; VOID LsaProtectMemory( [in, out] PVOID Buffer, [in] ULONG BufferSize ) {...} 

Parameters

[in, out] Buffer

On input, a pointer to the buffer to be encrypted. On output, a pointer to the encrypted buffer.

[in] BufferSize

The size, in bytes, of the Buffer buffer.

Return value

None

Remarks

A pointer to the LsaProtectMemory 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