Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit Windows
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00138616
Message ID:
00138667
Views:
16
>How can I program my application to shutdown the windows 95??
> I am using function "exitwindowsex" win32api,but the windows hang after the execution.And then, I am sure about:
> -If i execute exit windows from my application ,i should close my app first,or directly issue the exit windows command???If close the app first,i think the exit windows command couldn't be executed.

Hi John,

Use ExitWindowsEx using 4 (EWX_FORCE) as the parameter. This will force all applications to close with an End Task dialog being displayed. As a side note, the message sent to each application will be WM_QUERYENDSESSION.

hth,
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform