home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
os2nloff.zip
/
NLOFF.C
next >
Wrap
C/C++ Source or Header
|
1988-07-04
|
870b
|
26 lines
/*******************************************************************/
/* 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 <os2.h>
#include <process.h>
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 ;
}