Is there a way to disable or hook all shutdown or restarts?

  • Thread starter Thread starter Mark K Vallevand
  • Start date Start date
M

Mark K Vallevand

Is there a way to disable or hook all shutdowns or restarts except the ones
that come thru my programs?

It would be OK if the only way to shutdown or restart is with the xpepm
program. But, I don't want any of the normal ways to work. I especially
don't want XPe to prompt for a restart after a configuration change. Or, if
it does prompt for a restart, it doesn't happen if they select OK.
 
Mark,

Open gpedit.msc and track registry changes.

Go to User Configuration->Administrative Templates->Start Menu and Taskbar
Open "Remove and disable the Turn Off Computer button" and Enable this
value.

If there are other ways for your user to disable your device. You can find a
way to disable it in this util.

Regards,
Slobodan
 
Great! Thanks.
Anyone know of a way to prevent XPe from suggesting a reboot when changing
configuration information like computer name?
 
HookAPI is the API SDK that setup SYSTEM-WIDE hooks for all windows
platform,it could easily hook 32-bit windows system APIs or 32-bit
user-defined DLL, it could be used easily,and what you need to do is
only writing a DLL file named mydll.dll or mydll_9x.dll.

I think it will helpful for you.Please see the detail information at
http://www.programsalon.com/en/hookapi.htm
 
Back
Top