Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exit Windows
Message
From
19/09/1998 08:05:47
 
 
To
19/09/1998 07:18:33
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00138616
Message ID:
00138623
Views:
17
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform