Flags a process to end, and returns the termination code to its parent (if any).

#define INCL_DOSPROCESS
#include <os2.h>

ULONG     action;  /*  The processes to be flagged for ending. */
PID       pid;     /*  Process ID of the process or root process of the process tree to be flagged for ending. */
APIRET    ulrc;    /*  Return Code. */

ulrc = DosKillProcess(action, pid);


[Back] [Next]