Category : OS/2 Files
Archive   : KILL.ZIP
Filename : KILL.C

Output of file : KILL.C contained in archive : KILL.ZIP
/* Copyright 1988 Thomas R. Prodehl, Lattice, Inc.
Permission is granted for use for private, non-commercial use only */

/* This program kills a process by process id. Useful for terminating
detached processes.*/

/* This program was compiled with the Lattice C Compiler 3.3 */


unsigned main(argc, argv)
int argc;
char **argv;
unsigned pid, retval;
if (argc != 2){
VIOWRTTTY((char far *)"usage: kill pid\n\r",17,RESV_WORD);
pid = atoi(argv[1]);
retval = DOSKILLPROCESS(1, pid);
switch (retval){
case 0: break;
case 303: VIOWRTTTY((char far *)"KIL0303: Invalid process id\n\r",
default: VIOWRTTTY((char far *)"KILFAIL: Unable to kill that process id\n\r",
return retval;

  3 Responses to “Category : OS/2 Files
Archive   : KILL.ZIP
Filename : KILL.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: