MCPcopy Create free account
hub / github.com/WinDurango/WinDurango / WdRoGetActivationFactory

Function WdRoGetActivationFactory

projects/WinDurango.KernelX/src/Hooks.cpp:376–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

374 DetourTransactionCommit();
375 }
376
377 return coreWindowStatic.CopyTo(iid, factory);
378 }
379
380 if (rss == std::string("Windows.ApplicationModel.Store.CurrentApp"))
381 {
382 HRESULT hr = g_RoGetActivationFactory(activatableClassId, iid, factory);
383
384 if (FAILED(hr))
385 return hr;
386
387 if (!TrueActivateInstance) {
388 TrueActivateInstance = GetVTableMethod<decltype(TrueActivateInstance)>(*factory, 6);
389
390 DetourTransactionBegin();
391 DetourUpdateThread(GetCurrentThread());
392 DetourAttach(reinterpret_cast<PVOID*>(&TrueActivateInstance), EraAppActivateInstance);
393 DetourTransactionCommit();
394 }
395 }
396

Callers 1

Calls 4

WdRoEnsureInitializedFunction · 0.85
initedMethod · 0.80
InitMethod · 0.80

Tested by

no test coverage detected