NTSTATUS
NtWriteVirtualMemory(
  IN  HANDLE ProcessHandle,
  OUT PVOID BaseAddress,
  IN  PVOID Buffer,
  IN  ULONG BufferSize,
  OUT PULONG NumberOfBytesWritten OPTIONAL
  );

Routine Description:

    This function copies the specified address range from the current
    process into the specified address range of the specified process.

Arguments:

     ProcessHandle - Supplies an open handle to a process object.

     BaseAddress - Supplies the base address to be written to in the
          specified process.

     Buffer - Supplies the address of a buffer which contains the
          contents to be written into the specified process
          address space.

     BufferSize - Supplies the requested number of bytes to write
          into the specified process.

     NumberOfBytesWritten - Receives the actual number of
          bytes transferred into the specified address
          space.

Return Value:

    TBS