MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / GetCoreWindow

Method GetCoreWindow

TranslucentTB/uwp/uwp.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122Window 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
135void UWP::HideCoreWindow()
136{

Callers

nothing calls this directly

Calls 1

putMethod · 0.80

Tested by

no test coverage detected