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.
MOU_SETHOTKEYBUTTON (1.2)
◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_DOSDEVIOCTL
USHORT DosDevIOCtl(0L, pfHotKey, 0x0055, 0x0007, hDevice)
PUSHORT pfHotKey; /* pointer to variable with hot key */
HFILE hDevice; /* device handle */
The MOU_SETHOTKEYBUTTON function sets the mouse-button equivalent for the
system hot key.
Parameter Description
────────────────────────────────────────────────────────────────────────────
pfHotKey Points to the variable that specifies the hot key. This variable
can be a combination of the following values:
Value Meaning
─────────────────────────────────────────────────────────────────
MHK_NO_HOTKEY No system hot key used.
MHK_BUTTON1 Button 1 is system hot key.
MHK_BUTTON2 Button 2 is system hot key.
MHK_BUTTON3 Button 3 is system hot key.
If 0x0001 is specified, no system hot-key support is provided. If
multiple values are given (excluding 0x0001), the system hot key
requires that the indicated buttons be pressed simultaneously.
hDevice Identifies the pointing device that receives the device-control
function. The handle must have been created previously by using
the DosOpen function.
Return Value
The return value is zero if the function is successful or an error value if
an error occurs.
Comments
This function can be called only by the process that initially issues it and
should be used only by the command shell.
See Also
DosOpen, MOU_GETHOTKEYBUTTON
♦