Windows 3.1 Device Drivers (ddag31qh.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.
EnableKBSysReq
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD EnableKBSysReq(fWord)
WORD fWord;
 
The EnableKBSysReq function enables and disables the CTRL+ALT+SYSREQ trap to
the debugger or Microsoft CodeView(R) (CVW).
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fWord      Specifies the action to take. This parameter can be one of the
           following values.
 
           Value  Meaning
           ─────────────────────────────────────────────────────────────────
           01h    Enables Interrupt 2
 
           02h    Disables Interrupt 2
 
           04h    Enables CVW Break
 
           08h    Disables CVW Break
 
Return Value
 
The return value is the state of the SYSREQ key traps. The return value
consists of the following bit values.
 
Bit  Meaning
────────────────────────────────────────────────────────────────────────────
0    Set to 1 to indicate Interrupt 2 enabled; 0 indicates that INT 2 is
     disabled.
 
1    Set to 1 to indicate CVW Break enabled; 0 indicates that CVW Break is
     disabled.
 
All other bits are reserved.
 
Comments
 
The export ordinal for this function is 136.
 
The initial behavior is to ignore CTRL+ALT+SYSREQ. If both Interrupt 2 and
CVW are enabled, then CVW overrides.
 
                                      ♦