Forcing a running screensaver to terminate
Can I use the msdn article on "How to force a screen saver to close
once started in Windows NT, Windows 2000, and Windows Server 2003" to
close my running screensaver given:
o I launch the screensaver myself using CreateProcess
o The actual windows screensaver is disabled
It seems that when I follow the article, I am not able to ever get the
desktop of the running screensaver therefore am not able to terminate
it. Any other ways around this? Should this call
OpenDesktop(TEXT("Screen-saver"), 0, FALSE, DESKTOP_READOBJECTS |
DESKTOP_WRITEOBJECTS);
contain a different lpszDesktop name?
|