LSA_COPY_TO_CLIENT_BUFFER callback function (ntsecpkg.h)

Copies information from a buffer in the current process into a client process's address space.

Syntax

LSA_COPY_TO_CLIENT_BUFFER LsaCopyToClientBuffer;

NTSTATUS LsaCopyToClientBuffer(
  [in] PLSA_CLIENT_REQUEST ClientRequest,
  [in] ULONG Length,
  [in] PVOID ClientBaseAddress,
  [in] PVOID BufferToCopy
)
{...}

Parameters

[in] ClientRequest

Pointer to an opaque LSA_CLIENT_REQUEST data type representing a client request.

[in] Length

Length in bytes of the buffer to be copied.

[in] ClientBaseAddress

Pointer to a buffer that receives the data. This address is the address of the buffer within the client process, not the current process.

[in] BufferToCopy

Pointer to the local buffer whose contents are to be copied into the client address space.

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.

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