def broadcast_change():
 (_, res) = SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 0, SMTO_ABORTIFHUNG, 5000)
 return (not bool(res))

def broadcast_change ( ) : ( _ , res ) = SendMessageTimeout ( HWND_BROADCAST , WM_SETTINGCHANGE , 0 , 0 , SMTO_ABORTIFHUNG , 5000 ) return ( not bool ( res ) )
refresh the windows environment .