Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
First above all else
Message
De
06/12/1998 14:35:40
 
 
À
06/12/1998 14:21:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00163551
Message ID:
00164565
Vues:
24
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform