| 940 | } |
| 941 | |
| 942 | void WinApplication::CaptureControlC() { |
| 943 | s_ctrl_handler = [this](DWORD signal) -> BOOL { |
| 944 | if (signal == CTRL_C_EVENT) { |
| 945 | std::cout << "CTRL+C detected, localVar value is " << "\n"; |
| 946 | this->Exit(); |
| 947 | return TRUE; |
| 948 | } |
| 949 | return FALSE; |
| 950 | }; |
| 951 | if (!SetConsoleCtrlHandler(ConsoleHandler, TRUE)) { |
| 952 | LOGE("ERROR: Could not set control handler"); |
| 953 | } |
| 954 | } |
| 955 | |
| 956 | void WinApplication::LoadDxAddress() { |
| 957 | app_shared_message_ = DxAddressLoader::LoadDxAddress(); |