Waits until another process terminates.intptr_t _cwait( int *termstat, intptr_t procHandle, int action ); Parameters termstat Pointer to a buffer where the result code of the specified process will be stored, or NULL. procHandle The handle to the process to wait on (the process that has to terminate before _cwait can return). action NULL: Ignored by Windows 98/Me and Windows NT/2000/XP applications; for other applications: action code to perform on procHandle.
ParameterstermstatPointer to a buffer where the result code of the specified process will be stored, or NULLprocHandleHandle to the current process or threadactionNULL: Ignored by Windows NT and Windows 95 applications; for other applications: action code to perform on procHandle
int *termstat,
intptr_t procHandle,
int action
);
Parameters
termstat
Pointer to a buffer where the result code of the specified process will be stored, or NULL.
procHandle
The handle to the process to wait on (the process that has to terminate before _cwait can return).
action
NULL: Ignored by Windows 98/Me and Windows NT/2000/XP applications; for other applications: action code to perform on procHandle.
怎么样给分啊