Category : OS/2 Files
Archive   : KILL.ZIP
Filename : KILL.C
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 */
#include
#include
#include
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);
exit(1);
}
pid = atoi(argv[1]);
retval = DOSKILLPROCESS(1, pid);
switch (retval){
case 0: break;
case 303: VIOWRTTTY((char far *)"KIL0303: Invalid process id\n\r",
29, RESV_WORD);
break;
default: VIOWRTTTY((char far *)"KILFAIL: Unable to kill that process id\n\r",
42, RESV_WORD);
}
return retval;
}
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/