>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.
When you shutdown Windows, all applications receives WM_SHUTDOWN message (if my memory serves me right). So, after issuing the call to ExitWindowsEx function, your application will receive the mesage from Windows to shutdown itself. Obviously, you have to close all tables before shutdowning (or, at least, close them in ON SHUTDOWN routine)
* Human is a question asked by birth and answered by death. Machine is another kind of question with another kind of answer