BOOLEAN
KeTryToAttachProcess(
  IN  PRKPROCESS Process
  );

Routine Description:

    This function tries to attach a thread to a target process' address
    space. If the target process is in memory or out of memory, then the
    target process is attached. Otherwise, it is not attached.

    N.B. If the target process state is out of memory, then the caller
        must have all pages for the process in memory. This function is
        intended for use by the memory management system.

Arguments:

    Process - Supplies a pointer to a dispatcher object of type process.

Return Value:

    If the target process state is not in transistion, then the target
    process is atached and a value of TRUE is returned. Otherwise, a
    value of FALSE is returned.