Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shutdown Windows from vfp
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00257880
Message ID:
00257927
Views:
16
So The command should be the following ?

=ExitWindowsEx(EWX_POWEROFF + EWX_FORCE, 0)
---OR---
=ExitWindowsEx(12, 0)

It Does'nt work for me, It only logs off my morkstation.

Any idea ?

>
>You need both the EWX_FORCE and EWX_SHUTDOWN values (EWX_SHUTDOWN + EWX_FORCE), and you must have ACPI/APM enabled on the station if you want it to actually power off the system and then use EWX_POWEROFF + EWX_FORCE.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform