typedef struct {
char msExist;
char msRelative;
short msNumButtons;
short msRate;
short msXThreshold;
short msYThreshold;
short msXRes;
short msYRes;
short msMouseCommPort;
} MOUSEINFO;
The MOUSEINFO structure specifies information about the mouse, such as the type of coordinates and the number of buttons.
msExist
Specifies whether a mouse device exists. It is nonzero if the device-initialization code was able to find and initialize a mouse device.
msRelative
Specifies whether the mouse coordinates are absolute or relative. This member is zero if the mouse returns absolute coordinates.
msNumButtons
Identifies how many buttons are on the installed mouse. For the IBM PC with a Microsoft Mouse, this field is set to 2.
msRate
Specifies the maximum number of hardware interrupts per second that the mouse can generate. For the IBM PC with the bus version of the Microsoft Mouse, this field is 34.
msXThreshold
Reserved; do not use.
msYThreshold
Reserved; do not use.
msXRes
Reserved; do not use.
msYRes
Reserved; do not use.
msMouseCommPort
Specifies the communication port used by the mouse. It can be one of the following values.
Value | Meaning |
0 | No port used. |
1 | Communications port 1 (COM1). |
2 | Communications port 2 (COM2). |
3 | Communications port 3 (COM3). |
4 | Communications port 4 (COM4). |
If a mouse driver sets the msMouseCommPort member, Windows reserves the specified communications port exclusively for use by the mouse.