|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
OnCloseQuery and system shutdown
Hello, I have my app do extra stuff before it shuts down by using OnCloseQuery, but it slows down the shutdown of the computer and I want to make sure that if the users wants his computer to shutdown my program will turn off right then but if he just clicks x it'll stay open for a bit longer. Similar to apps that when x is clicked minimize to the sys tray, but quit when the system is shutdown. Have any suggestions?
|
|
#2
|
|||
|
|||
|
Friend....you may use the shutdown messages:
WM_QUERYENDSESSION This one is sent by WINDOWS to all running programs if every program response was something different of 0, WINDOWS send de next message. WM_ENDSESSION This message represents that windows already start the shutdown process. ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Delphi Programming > OnCloseQuery and system shutdown |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|