bastek1604
10th April 2010, 22:09
Hey!
In my app i want to use SPI_SCREENSAVERRUNNING from SystemParametersInfo to active screen saver
My code:
bool OldState=1;
bool ok;
#if defined(Q_WS_WIN)
ok=SystemParametersInfo(97, TRUE, &OldState, 0);
QMessageBox::about(parent, "tytul", QString(ok?"T":"F"));
#endif
In MessageBox I checking that screen saver is running but i still get "F" - False
What i do wrong because i want to lock all shortkeys ex. alt+tab, alt+ctrl+delete
Thank you in advance for your help
Sory for my english
In my app i want to use SPI_SCREENSAVERRUNNING from SystemParametersInfo to active screen saver
My code:
bool OldState=1;
bool ok;
#if defined(Q_WS_WIN)
ok=SystemParametersInfo(97, TRUE, &OldState, 0);
QMessageBox::about(parent, "tytul", QString(ok?"T":"F"));
#endif
In MessageBox I checking that screen saver is running but i still get "F" - False
What i do wrong because i want to lock all shortkeys ex. alt+tab, alt+ctrl+delete
Thank you in advance for your help
Sory for my english