>DECLARE SHORT ExitWindowsEx IN Win32API ; > INTEGER nShutDownMode, ; > INTEGER nReserved >#DEFINE LoginNewUserFlagValue 0 && Fires login new user dialog >#DEFINE ShutdownFlagValue 1 && Shutdown, no restart >#DEFINE RestartFlagValue 2 && Restart Windows, if needed, do a cold boot >CLOSE ALL >FLUSH >=ExitWindowsEx(RestartFlagValue,0) > >Because of issues involving shelling and OLE, I would not try to have a VFP application replace the default shell; ZAK, while complex, doesn't interfere with shell-related extensions to the operating system, and can make as much of Win95's base functionality available to the system; you provide no mechanism for maintenance of the system if you load the VFP app as the shell. > >>>