I need to catch the windows logoff event, I am using C ++. I don’t know where to start the search,
thanks for any help
Dani.
In the console application, you can register a callback ( SetConsoleCtrlHandler, CTRL_LOGOFF_EVENT).
SetConsoleCtrlHandler
CTRL_LOGOFF_EVENT
In a pipeline application, you can catch certain messages ( WM_QUERYENDSESSION, WM_ENDSESSION).
WM_QUERYENDSESSION
WM_ENDSESSION
See Shutdown (Windows) on MSDN.
WM_QUERYENDSESSION and WM_ENDSESSION , most likely you are after.
OpenInputDesktop MSDN
, NULL.
: HDESK hDesk = OpenInputDesktop (0, FALSE, READ_CONTROL);
if (! hDesk) - ... - { - - CloseHandle (hDesk); }
Windows Vista 7 CTRL + ALT + DELETE .
, "" WMI.
http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/thread/0c1bded8-0cce-4260-bd28-4b4ffce0d27d
: .
Source: https://habr.com/ru/post/1758593/More articles:Is there a good git client for Mac OS X that has all the bells and whistles of Conerstone or Versions for Subversion? - gitHow to access :: has_many: although "append table data when using to_json? - jsonProgrammatically align text view in RelativeLayout - androidJava - setVisible (true) не влияет на графический интерфейс пользователя - javaCheck client to test WCF Rest services or just use a browser? - restA java call function from multiple threads that are not declared thread safe - javaCapturing Windows with C - c ++https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1758596/is-it-wrong-to-give-permission-other-classes-to-change-fields&usg=ALkJrhhHorN98GuMpzJKA8A_umiQv6stSwHow can I compare two common collections? - c #https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1758598/how-to-pass-variables-to-python-script&usg=ALkJrhgHlA1bR-8tiuFHZAvjYHH_ZHdmvQAll Articles