* Console control handler. Prepares the application for cleanly * shutting down during the next execution of the event loop. */
| 791 | * shutting down during the next execution of the event loop. |
| 792 | */ |
| 793 | BOOL 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 | |
| 806 | bool Application::IsProcessElevated() { |
| 807 | BOOL fIsElevated = FALSE; |
nothing calls this directly
no test coverage detected