Terminating a Process

<Retrieve process id from window words>

rc = DosKillProcess(1,                     /* Kill only this process     */
                    pidServer);            /* Process ID to be killed    */

This example shows the use of the DosKillProcess() function to terminate a single process.


[Back: DosKillThread() Function]
[Next: Interprocess Communication Using Shared Memory (Part 1)]