>Evan,
> Do you have any resource about how to shutdown the windows by VFP or VB?
>
Use ExitWindowsEx() in the Win32 API.
DECLARE ExitWindowsEx IN WIN32API INTEGER uFlags, INTEGER dwReserved
=ExitWindowsEx(nShutDownMode,0)
* 0 = Login new user, 1 = Shutdown, 2 = Restart
* Under NT user must have adequate privileges