NTSTATUS
SepAdtCopyToLsaSharedMemory(
  IN  HANDLE LsaProcessHandle,
  IN  PVOID Buffer,
  IN  ULONG BufferLength,
  OUT PVOID *LsaBufferAddress
  );

Routine Description:

    This function allocates memory shared with the LSA and optionally copies
    a given buffer to it.

Arguments:

    LsaProcessHandle - Specifies a handle to the Lsa Process.

    Buffer - Pointer to the buffer to be copied.

    BufferLength - Length of buffer.

    LsaBufferAddress - Receives the address of the buffer valid in the
        Lsa process context.

Return Value:

    NTSTATUS - Standard Nt Result Code

        Result codes returned by called routines.