Error in shell32.dll

  • Thread starter Thread starter Steve
  • Start date Start date
S

Steve

I have couple of bat files which I used to access from a desktop short cut
when my XP machine got troublesome, or I wanted a quick log off.

These no longer respond but produce an error message.



force-shutdown.bat

rundll32.exe shell32.dll,SHExitWindowsEx 6


force-shutdown.bat

rundll32.exe shell32.dll,SHExitWindowsEx 9



Error message

Error in shell32.dll

Missing entry : SHExitWindowsEx



XP Home machine with SP2 and fully up to date with all recommended updates
(set to auto)


Can some one advise what the problem may be and a fix?

Thanks

Steve
 
Steve,

The exported function existed in the Win98/ME version of Shell32 but does
not exist in the XP version of Shell32. You can still shutdown XP using a
batch file containing this:

shutdown -s -f -t 1
 
John Hensley said:
Steve,

The exported function existed in the Win98/ME version of Shell32 but does
not exist in the XP version of Shell32. You can still shutdown XP using a
batch file containing this:

shutdown -s -f -t 1
Thanks for that John

Is it possible that the function carried over into XP and persisted until
after I put in SP2?

What do the switches -s -f -t control?


Steve
 
Steve,

The -s specifies shutdown, the -f specifies forcing running programs to exit
without warning and -t specifies number of seconds before shutting down.
Running shutdown without any arguments will give a description of all of the
switches available.
 
John Hensley said:
Steve,

The -s specifies shutdown, the -f specifies forcing running programs to
exit
without warning and -t specifies number of seconds before shutting down.
Running shutdown without any arguments will give a description of all of
the
switches available.
Thanks for your help.

Steve
 
Back
Top