msos2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
SHIFTSTATE (1.2)
                                                      Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_DOSDEVICES
 
typedef struct _SHIFTSTATE {    /* shftst */
    USHORT fsState;
    BYTE   fNLS;
} SHIFTSTATE;
 
The SHIFTSTATE structure contains information about the shift state of the
default keyboard of the current screen group.
 
Field    Description
────────────────────────────────────────────────────────────────────────────
 
fsState  Specifies the state of the shift keys. It can be any combination of
         the following values:
 
         Value          Meaning
         ───────────────────────────────────────────────────────────────────
         RIGHTSHIFT     Right SHIFT key down.
 
         LEFTSHIFT      Left SHIFT key down.
 
         CONTROL        Either CTRL key down.
 
         ALT            Either ALT key down.
 
         SCROLLLOCK_ON  SCROLL LOCK mode turned on.
 
         NUMLOCK_ON     NUMLOCK mode turned on.
 
         CAPSLOCK_ON    CAPSLOCK mode turned on.
 
         INSERT_ON      INSERT mode turned on.
 
         LEFTCONTROL    Left CTRL key down.
 
         LEFTALT        Left ALT key down.
 
         RIGHTCONTROL   Right CTRL key down.
 
         RIGHTALT       Right ALT key down.
 
         SCROLLLOCK     SCROLL LOCK key down.
 
         NUMLOCK        NUMLOCK key down.
 
         CAPSLOCK       CAPSLOCK key down.
 
         SYSREQ         SYSREQ key down.
 
fNLS     Specifies the state of the national-language-support keys. This is
         zero for the United States.
 
See Also
 
KBD_GETSHIFTSTATE, KBD_SETSHIFTSTATE