If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Shutdown Windows when pwd-protected screensaver is active...

Hi. I have an API question.

I'm using ExitWindowsEx function to shutdown Windows (usually Win2K). It is working fine, it shutsdown, restarts, etc. If a screensaver is active and password protected though, it does not work at all.

Is there a way to "persuade" Win2K to shutdown even if a password-protected screensaver is active?

I dont have a definate answer for ya unfortunately, but I wonder if it is possible to somehow find the threadID of the screensaver and kill it. I can remember a few years ago fooling around with a program called Sub7 (by mobman) which could do this remotely but that was very very naughty!!!

It is indeed a naughty solution but i don't believe it will solve my problem. I'm using Win2K and it is most probable that the screensaver "tells" the system to lock itself so killing the ss will not unlock the system. This might work on a Win98 system.

Originally posted by Illuvatan
you're trying to shutdown windows while the workstation is locked isn't it ?
windows 2000 has no password protected screensavers, windows locks the workstation and then starts the screensaver.

Yes, that's what i'm trying to do... I know about all the things you mention here.

And I don't know any way to unlock a workstation without entering a password.
Maybe you could try using the shutdown.exe windows has.

Windows has no such exe AFAIK. Perhaps you are talking about a third-party utility. In any case, do you know of any utility which will shutdown the system, even if it has been locked?

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.