Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ReStarting PC via API call.
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00082027
Message ID:
00082074
Views:
27
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
Previous
Reply
Map
View

Click here to load this message in the networking platform