home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Guide / c-cplusplus-interactive-guide.iso / c_ref / csource1 / cenvew / numlock.cmm < prev    next >
Encoding:
Text File  |  1993-09-25  |  191 b   |  8 lines

  1. // NumLock.cmm - Turn on the NUMLOCK key if it's not already on
  2.  
  3. #include <Message.lib>
  4. #include <KeyPush.lib>
  5.  
  6. if ( !(GetKeyboardState()[VK_NUMLOCK] & 1) )
  7.    KeyStroke(VK_NUMLOCK);
  8.