Home > Back-end >  Access to computer shutdown signal VS2015 C
Access to computer shutdown signal VS2015 C

Time:03-16

Use is VS2015c + +, how to get computer shutdown signal, have bosses told, it is nice to have small example,

CodePudding user response:

As a Windows will send messages to the window

CodePudding user response:

Right, there is a signal, but don't know how to do this in the VS2015 environment

CodePudding user response:

WM_QUERYENDSESSION

CodePudding user response:

Yes, that's the signal, but how to use this signal in my project, this is where the repository, and how to call

CodePudding user response:

reference ~ do ~ 4 floor response:
yes, this is the signal, but how to use this signal in my project, this is where the repository, and how to call ah

Refer to
MSDN98_1. ISO http://pan.baidu.com/s/1dDF41ix, MSDN98_2. ISO http://pan.baidu.com/s/1bnGo0Vl
The inside of the example
98 vs MSDN98 \ \ 2052 \ SAMPLES \ VC98 \ SDK \ SDKTOOLS \ WINNT \ PERFMON \ PERFMON C
282: case WM_QUERYENDSESSION:
287: case WM_ENDSESSION:
  • Related