[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 134
  • Last Modified:

Exit windows

While the system shutting down, My program can't be auto-close. How can I close my program while system shutting down and which message I need listen to?

Please give me a example program
0
cookey
Asked:
cookey
1 Solution
 
hubdogCommented:
WM_QUERYENDSESSION
 procedure WMQueryEndSession (var Message: TMessage); message WM_QUERYENDSESSION ;
if return value=0 then not shutdown
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now