Desktop shutdown

  • Thread starter Thread starter Pablo
  • Start date Start date
P

Pablo

Can I creat a shortcut Icon for shutdown for winxp.
If yes what file do i browse for.
Pablo
 
Kelly said:
Hi Pablo,

%windir%\System32\rundll32.exe user32.dll,LockWorkStation

C:\Windows\System32\rundll32.exe user32.dll,LockWorkStation.

Once done, browse to shell32.dll and choose the shutdown icon.

LockWorkStation() does just that, and does not *shut down* the machine...

Oh, wait, "Desktop shutdown"...that's rather ambiguous. :-/

Pablo, if you want to shut down (eg, "power off") the machine, look up
ExitWindowsEx(), at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/exitwindowsex.asp.
You can call it with rundll32 the same way as LockWorkStation.
ExitWindowsEx() is also in user32.dll. You will also need to look up the
constant values in order to pass them to rundll32.exe.

If anyone wants to elaborate, please feel free to jump in.
 
Back
Top