VOID
RtlInitializeContext(
  IN  HANDLE Process,
  OUT PCONTEXT Context,
  IN  PVOID Parameter OPTIONAL,
  IN  PVOID InitialPc OPTIONAL,
  IN  PVOID InitialSp OPTIONAL
  );

Routine Description:

    This function initializes a context structure so that it can be used in
    a subsequent call to NtCreateThread.

Arguments:

    Context - Supplies a pointer to a context record that is to be initialized.

    InitialPc - Supplies an initial program counter value.

    InitialSp - Supplies an initial stack pointer value.

Return Value:

    Raises STATUS_BAD_INITIAL_STACK if the value of InitialSp is not properly
           aligned.

    Raises STATUS_BAD_INITIAL_PC if the value of InitialPc is not properly
           aligned.