| 120 | } |
| 121 | |
| 122 | Window UWP::GetCoreWindow() |
| 123 | { |
| 124 | Window coreWin; |
| 125 | try |
| 126 | { |
| 127 | const auto coreInterop = winrt::Windows::UI::Core::CoreWindow::GetForCurrentThread().as<ICoreWindowInterop>(); |
| 128 | winrt::check_hresult(coreInterop->get_WindowHandle(coreWin.put())); |
| 129 | } |
| 130 | HresultErrorCatch(spdlog::level::warn, L"Failed to get core window handle"); |
| 131 | |
| 132 | return coreWin; |
| 133 | } |
| 134 | |
| 135 | void UWP::HideCoreWindow() |
| 136 | { |