See if High Contrast Theme is On -- Help with DllCall("SystemParametersInfo")
Posted: 26 Oct 2017, 09:53
Using Autohotkey_H. I'm trying to check if a high contrast theme is on (see this link for a C++ example)
DllCall returns 0, but dwFlags is always 0, even when the high contrast theme is off. What am I doing wrong?
DllCall returns 0, but dwFlags is always 0, even when the high contrast theme is off. What am I doing wrong?
Code: Select all
vHighContrast := Struct("UINT cbSize, DWORD dwFlags, LPTSTR lpszDefaultScheme", {cbSize:sizeof("UINT cbSize, DWORD dwFlags, LPTSTR lpszDefaultScheme")})
Msgbox % DllCall("SystemParametersInfo", "Uint", SPI_GETHIGHCONTRAST:=66, "Uint", 0, "ptr", &vHighContrast, "Uint", 0)
MsgBox % vHighContrast.dwFlags