Category : OS/2 Files
Archive   : OS2NLOFF.ZIP
Filename : NLOFF.C

 
Output of file : NLOFF.C contained in archive : OS2NLOFF.ZIP
/*******************************************************************/
/* NLOFF.C - a short OS/2 utility to turn off the numlock */
/* under OS/2. Programmed by Charles Petzold */
/* of PC Magazine, and presented on PCMagNet. */
/* As Charles says in his message, a better */
/* approach than creating a device driver to */
/* do such a simle job. - JPS */
/*******************************************************************/

#define INCL_BASE /* added by JPS to conform with different */
/* OS2.H file */
#define INCL_KBD
#include
#include

int main (int argc, char *argv[])
{
static KBDINFO kbst = { 10, 0x10, 0, 0, 0 } ;

KbdSetStatus (&kbst, 0) ;
spawnv (P_NOWAIT, argv[1], argv + 1) ;
return 0 ;
}




  3 Responses to “Category : OS/2 Files
Archive   : OS2NLOFF.ZIP
Filename : NLOFF.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: http://www.os2museum.com/wp/mtswslnk/