NTSTATUS
MmInitializeProcessAddressSpace(
  IN  PEPROCESS ProcessToInitialize,
  IN  PEPROCESS ProcessToClone OPTIONAL,
  IN  PVOID SectionToMap OPTIONAL,
  OUT PUNICODE_STRING * AuditName OPTIONAL
  );

Routine Description:

    This routine initializes the working set and mutexes within an
    newly created address space to support paging.

    No page faults may occur in a new process until this routine is
    completed.

Arguments:

    ProcessToInitialize - Supplies a pointer to the process to initialize.

    ProcessToClone - Optionally supplies a pointer to the process whose
                     address space should be copied into the
                     ProcessToInitialize address space.

    SectionToMap - Optionally supplies a section to map into the newly
                   initialized address space.

        Only one of ProcessToClone and SectionToMap may be specified.


Return Value:

    None.


Environment:

    Kernel mode.  APCs Disabled.