When I launch the program, no window shows up.
Looking at the stack:
It appears that the call to
SystemParametersInfoW (SPI_SETNONCLIENTMETRICS, sizeof(NONCLIENTMETRICSW), &local, 0)
(structure size indicates WINVER is Vista or higher)
Some Google searches don't show any answer as to why this function would hang when the last parameter is zero, other than malformed contents of the passed structure. There are a number of posts similar to that complaining about calls to
intermittently not working on Windows 7, but that's all I found.
It's a shame since setting the theme is not something that affects the core functionality of the program. In fact, I don't like crazy themed windows in general and prefer normal controls. But, it looks like I need to find another program to run SMART tests on a new drive. Perhaps the point made for SystemParametersInfo in general of always running it on a scratch thread (although with the last param being zero it should not have needed that) is a good idea if this function is cranky.