>>Hi all
>>
>>Anybody knows the right API call to shutdown windows from VFP ?
>
>ExitProcessEx() - check the FAQ under
Win32 and Other APIs - I have an entry in there that describes what you need to do.
Make that ExitWindowsEx(); the API call can be used to force logout, restart, reboot or shutdown, but NT may make life tough. behavior varies depending on whether it runs in a WinAPp or a console app.