Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ReStarting PC via API call.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00082027
Message ID:
00082074
Vues:
28
Thanks, Vlad, I'd overlooked the fact that the values can be combined.



>EWX_FORCE is intended to be used combined with one of other actions in the list. IE, if you want to force a reboot, use 2+4, so 6.
>
>Vlad
>
>>
>>#DEFINE EWX_LOGOFF 0
>>#DEFINE EWX_SHUTDOWN 1
>>#DEFINE EWX_REBOOT 2
>>#DEFINE EWX_FORCE 4
>>#DEFINE EWX_POWEROFF 8
>>
>>
>>Of the above, tests indicated the following on a Novell network: Both EWX_LOGOFF and EWX_FORCE produced the same result. Windows reported that a network application (VFP) was not responding, treated it as an error, and restarted Windows.
>>
>>Both EWX_SHUTDOWN and EWX_REBOOT seemed to work as intended. However, it should be noted that neither called the standard Windows 95 shutdown dialog.
>>
>>hth,
>>
>>George
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform