[EXT] Shutsdown the specified MACHINE, notifying users with the supplied MESSAGE, within the specified TIMEOUT interval. Forces closing of all documents without prompting the user if FORCECLOSE is true, and reboots the machine if REBOOT is true. This function works only on WinNT.

This says it only works for NT but it may work for Win2000. I don't find much other than that. Maybe you can find the kernel.dll and pertinent docs to find out how to use Win32::API to do this.

That's what I was looking for - earlier I have scanned the Visual Studio's Windows API reference and everything under Win32 in perldoc except the Win32 itdelf - and for some obscure reason :-) didn't find the function that performs the shutdown. Right now I'm doing this with shutdown.exe (something similar to the one) from the Win2K resource kit, but it's not cool. I'm sure Win32::InitiateSystemShutdown will work for Win2K - they mention the WinNT as opposed to Win95/98 etc.

It's located in the Win2K resource kit :-( Until now I couldn't get hold of a copy, but the utility I'm working with is basically identical to the one from the resouce kit, so it doesn't matter which one I'm using.

What I need is the exitwindowsEX function (this one actually performs a shutdown). My problem is that the function requires a couple of parameters (Visual Studio's API Text Viewer states so) and the question is how do I pass the params to the function is such a call? Jean SpectorSQA Engineer @ Exanetjean.spector@softhome.net

There are only 10 types of people in the world - Those who understand binary, and those who don't.

Oh? At windows 98, I have a shortcut in my quick-lauch having the following target:

C:\WINDOWS\RUNDLL32.EXE user.exe,exitwindows

Try making that shortcut... If that works, it could also work with Perl.

I know about the ExitWindowsEx function, but passing parameters..? I don't know. Guess it isn't even possible... Maybe some of the guys at M$ have some explaination of rundll32.exe (for example at http://msdn.microsoft.com/library) But that's a wild guess..