Pages: [1]
  Print  
Author Topic: HDDScan gets stuck before showing window  (Read 5789 times)
JDlugosz
Newbie
*
Posts: 4


« on: October 31, 2014, 09:19:06 AM »

When I launch the program, no window shows up.

Looking at the stack:

Code:
USER32.dll!SystemParametersInfoW+0x40
HDDScan.exe+0x2235da

It appears that the call to
Code:
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
Code:
SystemParametersInfo (SPI_SETNONCLIENTMETRICS,
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.
Logged
Pages: [1]
  Print  
 
Jump to: