Partager via


ACCESSTIMEOUT

The ACCESSTIMEOUT structure contains information about the time-out period associated with the Win32 accessibility features. The accessibility time-out period is the length of time that must pass without keyboard and mouse input before the operating system automatically turns off accessibility features. The accessibility time-out is designed for computers that are shared by several users so that options selected by one user do not inconvenience a subsequent user.

The accessibility features affected by the time-out are the FilterKeys features (SlowKeys, BounceKeys, and RepeatKeys), MouseKeys, ToggleKeys, and StickyKeys. The accessibility time-out also affects the high contrast mode setting.

typedef struct tagACCESSTIMEOUT {
    UINT   cbSize; 
    DWORD  dwFlags; 
    DWORD  iTimeOutMSec; 
} ACCESSTIMEOUT, *LPACCESSTIMEOUT; 

Members

  • cbSize
    Specifies the size, in bytes, of this structure.

  • dwFlags
    A set of bit flags that specify properties of the time-out behavior for accessibility features. The following values are defined.

    Value Meaning
    ATF_ONOFFFEEDBACK If this flag is set, the operating system plays a descending siren sound when the time-out period elapses and the accessibility features are turned off.
    ATF_TIMEOUTON If this flag is set, a time-out period has been set for accessibility features. If this flag is not set, the features will not time out even though a time-out period is specified.
  • iTimeOutMSec
    Specifies the time-out period, in milliseconds.

Remarks

Use an ACCESSTIMEOUT structure when calling the SystemParametersInfo function with the uiAction parameter set to the SPI_GETACCESSTIMEOUT or SPI_SETACCESSTIMEOUT value. When using SPI_GETACCESSTIMEOUT, you must specify the cbSize member of the ACCESSTIMEOUT structure; the SystemParametersInfo function fills in the remaining members. Specify all structure members when using the SPI_SETACCESSTIMEOUT value.

Requirements

**  Windows NT/2000/XP:** Included in Windows NT 3.5 or later.
**  Windows 95/98/Me:** Included in Windows 95 or later.
**  Header:** Declared in Winuser.h; include Windows.h.

See Also

Accessibility Structures, SystemParametersInfo