(C) 1998 AROS - The Amiga Research OS
You should pass a segList as returned by LoadSeg() (or similar) in the 'segList' parameter, and specify the stack size in 'stackSize'.
You should really use CreateNewProc() rather than this function as it is much more flexible.
This does not return a pointer to the Process structure, but rather the MsgPort structure contained within it. You can get the real Process structure by:
struct Process *pr; struct MsgPort *mp;
mp = CreateProc(...); pr = (struct Process *)((struct Task *)mp - 1);
// Shouldn't use mp after this point
Moved #include's into first column