The Old New Thing

Why does SystemParametersInfo hang when I pass the SPIF_SENDCHANGE flag?

If you pass the flag to the function, it will broadcast the message with the wParam equal to the system parameter code you passed. For example, if you call then the system will broadcast the message If there is a window that isn't responding to messages, then this broadcast will hang until that unresponsive window finally resumes ...