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
 
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.

/xp_tweaks.htm

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top