NTSTATUS
SepAdtMarshallAuditRecord(
  IN  PSE_ADT_PARAMETER_ARRAY AuditParameters,
  OUT PSE_ADT_PARAMETER_ARRAY *MarshalledAuditParameters,
  OUT PSEP_RM_LSA_MEMORY_TYPE RecordMemoryType
  );

Routine Description:

    This routine will take an AuditParamters structure and create
    a new AuditParameters structure that is suitable for sending
    to LSA.  It will be in self-relative form and allocated as
    a single chunk of memory.

Arguments:


    AuditParameters - A filled in set of AuditParameters to be marshalled.

    MarshalledAuditParameters - Returns a pointer to a block of heap memory
        containing the passed AuditParameters in self-relative form suitable
        for passing to LSA.

    RecordMemoryType -- type of memory returned. currently always uses
                        paged pool (returns SepRmPagedPoolMemory)

Return Value:

    NTSTATUS code