|
|
|
@ -36,25 +36,8 @@ inline DWORD ExplorerPid()
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline void AddUwpOverlayOvWidget()
|
|
|
|
|
inline void EnableUwpOverlay()
|
|
|
|
|
{
|
|
|
|
|
Overlay::AddOverlayElem([]() {
|
|
|
|
|
ImGui::SetNextWindowPos({1200, 250}, ImGuiCond_FirstUseEver);
|
|
|
|
|
ImGui::SetNextWindowSizeConstraints({170, 325}, {1000, 1000});
|
|
|
|
|
ImGui::SetNextWindowCollapsed(true, ImGuiCond_FirstUseEver);
|
|
|
|
|
ImGui::Begin("UWP-Overlay");
|
|
|
|
|
ImGui::Text("To enable the overlay on top of \"fullscreen\" UWP-Apps,");
|
|
|
|
|
ImGui::Text("a .dll has to be injected into explorer.exe");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Text("This method also uses undocumented windows functions");
|
|
|
|
|
ImGui::Text("and is highly experimental");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Text("This might cause issues!!!");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
if (ImGui::CollapsingHeader("I am sure!")) {
|
|
|
|
|
if (ImGui::Button(/* just */ "DO IT!")) { // insert meme gif here >.<
|
|
|
|
|
const auto enabler_path = internal::EnablerPath();
|
|
|
|
|
if (std::filesystem::exists(enabler_path)) {
|
|
|
|
|
const auto explorer_pid = internal::ExplorerPid();
|
|
|
|
@ -63,7 +46,6 @@ inline void AddUwpOverlayOvWidget()
|
|
|
|
|
// No need to eject, as the dll is self-ejecting.
|
|
|
|
|
if (DllInjector::Inject(explorer_pid, enabler_path.wstring())) {
|
|
|
|
|
spdlog::info("Successfully injected UWPOverlay enabler into explorer.exe");
|
|
|
|
|
// Nesting level over 9000
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -75,6 +57,28 @@ inline void AddUwpOverlayOvWidget()
|
|
|
|
|
spdlog::error("UWPOverlayEnablerDLL not found");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
inline void AddUwpOverlayOvWidget()
|
|
|
|
|
{
|
|
|
|
|
Overlay::AddOverlayElem([]() {
|
|
|
|
|
ImGui::SetNextWindowPos({1200, 250}, ImGuiCond_FirstUseEver);
|
|
|
|
|
ImGui::SetNextWindowSizeConstraints({170, 325}, {1000, 1000});
|
|
|
|
|
ImGui::SetNextWindowCollapsed(true, ImGuiCond_FirstUseEver);
|
|
|
|
|
ImGui::Begin("UWP-Overlay");
|
|
|
|
|
ImGui::Text("To enable the overlay on top of \"fullscreen\" UWP-Apps,");
|
|
|
|
|
ImGui::Text("a .dll has to be injected into explorer.exe");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Text("This method also uses undocumented windows functions");
|
|
|
|
|
ImGui::Text("and is highly experimental");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
ImGui::Text("This might cause issues!!!");
|
|
|
|
|
ImGui::Spacing();
|
|
|
|
|
if (ImGui::CollapsingHeader("I am sure!")) {
|
|
|
|
|
if (ImGui::Button(/* just */ "DO IT!")) { // insert meme gif here >.<
|
|
|
|
|
EnableUwpOverlay();
|
|
|
|
|
}
|
|
|
|
|
ImGui::Text("If the overlay isn't working right away:");
|
|
|
|
|
ImGui::Text("try opening Windows start menu, as this triggers the hook");
|
|
|
|
|
}
|
|
|
|
|