Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
BUG: SystemParametersInfo with SPI_GETSCREENSAVEACTIVE Always Returns True on Windows 2000
Article ID: 318781 - View products that this article applies to.
This article was previously published under Q318781
The SystemParametersInfo function with the uiAction parameter set to SPI_GETSCREENSAVEACTIVE returns True although no screen saver is active.
You can work around this problem by querying the registry to check whether the screen saver is active. The presence of the Scrnsave.exe file under the registry key HKCU\Control Panel\Desktop indicates that the screen saver is active.
The following sample code demonstrates this condition:
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Steps to Reproduce the Behavior