The SERIALKEYS structure contains information about the SerialKeys accessibility feature, which interprets data from a communication aid attached to a serial port as commands causing the system to simulate keyboard and mouse input.
typedef struct tagSERIALKEYS { // sk
DWORD cbSize;
DWORD dwFlags;
LPSTR lpszActivePort;
LPSTR lpszPort;
DWORD iBaudRate;
DWORD iPortState;
} SERIALKEYS, FAR* LPSERIALKEYS;
Value | Meaning |
---|---|
SERKF_ACTIVE | The SerialKeys feature is currently receiving input on the serial port specified by lpszPort. |
SERKF_AVAILABLE | The SerialKeys feature is available. |
SERKF_INDICATOR | A visual indicator is displayed when the SerialKeys feature is on. This value is not currently used and is ignored. |
SERKF_SERIALKEYSON | The SerialKeys feature is on. |
Value | Meaning |
---|---|
0 | All input on this port is ignored by the SerialKeys feature. |
1 | Input on this port is watched for SerialKeys activation sequences when no other application has the port open. |
2 | All input on this port is treated as SerialKeys commands. |
An application uses this structure when calling the SystemParametersInfo function with the SPI_GETSERIALKEYS or SPI_SETSERIALKEYS value. When using SPI_GETSERIALKEYS, an application must specify the cbSize, lpszActivePort, and lpszPort members of the SERIALKEYS structure; the SystemParametersInfo function fills the remaining members. An application must specify all structure members when using the SPI_SETSERIALKEYS value.
Windows NT: Requires version 3.51 or later.
Windows: Requires Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in winuser.h.
Unicode: Defined as Unicode and ANSI structures.
Accessibility Overview, Accessibility Structures, SystemParametersInfo