MCPcopy Create free account
hub / github.com/Icinga/icinga2 / CtrlHandler

Method CtrlHandler

lib/base/application.cpp:793–804  ·  view source on GitHub ↗

* Console control handler. Prepares the application for cleanly * shutting down during the next execution of the event loop. */

Source from the content-addressed store, hash-verified

791 * shutting down during the next execution of the event loop.
792 */
793BOOL WINAPI Application::CtrlHandler(DWORD type)
794{
795 Application::Ptr instance = Application::GetInstance();
796
797 if (!instance)
798 return TRUE;
799
800 instance->RequestShutdown();
801
802 SetConsoleCtrlHandler(nullptr, FALSE);
803 return TRUE;
804}
805
806bool Application::IsProcessElevated() {
807 BOOL fIsElevated = FALSE;

Callers

nothing calls this directly

Calls 1

RequestShutdownMethod · 0.80

Tested by

no test coverage detected