Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I write an application with C++, it can not receive WM_QUERYENDSESSION message , I don't know why.
Hi, @Nina I can use win32 desktop application template sample to get this message. Could you please share a minimal, reproducible, complete sample? And also note that to delete your private information. And according to the document:
The system stops sending WM_QUERYENDSESSION messages as soon as one application returns zero.
Make sure there is no other application return zero for this message.