Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First above all else
Message
From
06/12/1998 14:35:40
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00163551
Message ID:
00164565
Views:
17
Ed,

Thanks a million. I needed something like this badly, because the users are deleting files and changing drivers from the main Win Explorer, so I needed more security. I'll try this out tomorrow (morning). If it's stable, I sticj with it for some time, while I check out the ZAK thoroughly.



>VFP can call a Win32 API function to shut down Windows (under NT, there is an assumption that the user has the necessary permissions to do so.) The call I use when I want the system to restart Windows from scratch is:
>
>
>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.
>
>
>>
>>TIA
Kenneth.
Previous
Reply
Map
View

Click here to load this message in the networking platform