Vixen
dd8b0a81
csharp
public static class WindowsAccessibility

Which accessibility settings Windows is running with.

Read the guide page for this →

Remarks

Two SystemParametersInfo reads, which is what every native toolkit does here. Neither has a registry value worth reading instead: the animation switch is derived from several settings pages and high contrast is a scheme rather than a flag, so the API is the only place the answer is assembled.

⚠ SPI_GETCLIENTAREAANIMATION is the inverse of the preference. It answers "may I animate", so TRUE means the user has not asked for reduced motion. It is the same reading trap WindowsAppearance carries one setting over, and getting it backwards ships more animation to exactly the users who asked for less.

⚠ A failed call is null and not false. The action is absent on Windows old enough not to have the setting, and a policy can refuse it — reporting "the user did not ask for reduced motion" for either is an answer this never learned. See SystemAccessibility.

Methods (1)

Used by (1)

  • DesktopAccessibilityVixen.Platform.Desktop