Files
WinDurango/dlls/kernelx/FrameworkViewSourceWrapper.h
T
AleBlbl bcca557c6e CoreWindowX Fix (#80)
* winrt_x no more needs to put *too many* dll in the game folder

* Implement FrameworkView and FrameworkViewSource Wrappers to fix CoreWindowX Leaking
2025-01-03 00:37:16 +01:00

28 lines
771 B
C++

#pragma once
#include "ICoreApplicationX.h"
class FrameworkViewSourceWrapper : public IFrameworkViewSource
{
public:
FrameworkViewSourceWrapper(IFrameworkViewSource* windowViewSource)
: m_realViewSource(windowViewSource)
{
}
HRESULT STDMETHODCALLTYPE CreateView(ABI::Windows::ApplicationModel::Core::IFrameworkView** viewProvider) override;
// IActivationFactory (IInspectable + IUnknown)
HRESULT QueryInterface(const IID& riid, void** ppvObject) override;
ULONG AddRef() override;
ULONG Release() override;
HRESULT GetIids(ULONG* iidCount, IID** iids) override;
HRESULT GetRuntimeClassName(HSTRING* className) override;
HRESULT GetTrustLevel(TrustLevel* trustLevel) override;
private:
long m_refCount = 1;
IFrameworkViewSource* m_realViewSource;
};