>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