def set_delay(milliseconds): result = system.SystemParametersInfo( system.SPI_SETACTIVEWNDTRKTIMEOUT, 0, ctypes.cast(milliseconds, ctypes.c_void_p), 0, ) handle_nonzero_success(result)
def set(value): result = system.SystemParametersInfo( system.SPI_SETACTIVEWINDOWTRACKING, 0, ctypes.cast(value, ctypes.c_void_p), 0, ) handle_nonzero_success(result)
def get_delay(): value = ctypes.wintypes.DWORD() result = system.SystemParametersInfo( system.SPI_GETACTIVEWNDTRKTIMEOUT, 0, ctypes.byref(value), 0, ) handle_nonzero_success(result) return int(value.value)
def get(): value = ctypes.wintypes.BOOL() result = system.SystemParametersInfo( system.SPI_GETACTIVEWINDOWTRACKING, 0, ctypes.byref(value), 0, ) handle_nonzero_success(result) return bool(value)