>I am looking for the OCX that can shutdown and reboot from client,
>I use NT4 and the language is VB6 .. any suggestion will be highly appreciated
>
I'd look at using the API call ExitWindowsEx(); be aware that user permissions can prevent an application from doing much more than forcing the user to log out directly. Your best bet would be to use the EWX_REBOOT and EWX_FORCE flags for the first argument. The user and process must have the SE_SHUTDOWN_NAME privilege granted to make the system reboot; another API call, AdjustTokenPrivileges(), can be used to grant the permission to the process if the user has sufficient system privileges. See the MSDN documentation on ExitWindowsEx() and AdjustTokenPrivileges() to get all the gory details.
Short of that, under NT you can use the command line utility SHUTDOWN.EXE that ships with the WinNT Resource Kit. If you've installed it,
SHUTDOWN /r will force a system to reboot. Try
http://www.ntfaq.com for more information on shutting down NT systems.
>regards
>Winan