BOOL bInheritHandle ,
//handle inheritance flag
DWORD dwCreationFlag,//various creation flags
LPVOID lpEnviroment,//Enviroment variable
LPCTSTR lpCurrentDirectory, //Child's current directory
LPSTARTUPINFO lpStartupInfo, //pointer to StartupInfo
LPPROCESS_INFORMATION lpProcessInformation
//pointer to PROCESS_INFORMATION
)
虽然参数多了些,不过在现阶段的实验级别,大多数参数只要用默认值即可。
下面要做的关于Windows使用进程的实验,在Linux系统下,可以使用类似: