Close applications
-
I need to close the system from my application, but before I wanted to send a message to the other processes so that they close. With shutdown no problem, but I don't know as sending the message to the processes. I proved with PostMessage(HWND_BROADCAST, WM_QUERYENDSESSION, 0, 0), but it didn't work. Would somebody be able to help me ? Thank in advance.
-
I need to close the system from my application, but before I wanted to send a message to the other processes so that they close. With shutdown no problem, but I don't know as sending the message to the processes. I proved with PostMessage(HWND_BROADCAST, WM_QUERYENDSESSION, 0, 0), but it didn't work. Would somebody be able to help me ? Thank in advance.
There's no need to do this.
ExitWindowsEx
will close any other applications running. Stability. What an interesting concept. -- Chris Maunder -
I need to close the system from my application, but before I wanted to send a message to the other processes so that they close. With shutdown no problem, but I don't know as sending the message to the processes. I proved with PostMessage(HWND_BROADCAST, WM_QUERYENDSESSION, 0, 0), but it didn't work. Would somebody be able to help me ? Thank in advance.
-
There's no need to do this.
ExitWindowsEx
will close any other applications running. Stability. What an interesting concept. -- Chris Maunder