mirror of
https://github.com/WinDurango/WinDurango.git
synced 2026-05-21 01:18:49 -05:00
bcca557c6e
* winrt_x no more needs to put *too many* dll in the game folder * Implement FrameworkView and FrameworkViewSource Wrappers to fix CoreWindowX Leaking
33 lines
983 B
C++
33 lines
983 B
C++
#pragma once
|
|
#include "ICoreApplicationX.h"
|
|
|
|
class FrameworkViewWrapper : public IFrameworkView
|
|
{
|
|
public:
|
|
|
|
FrameworkViewWrapper(IFrameworkView* windowView)
|
|
: m_realView(windowView)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
HRESULT STDMETHODCALLTYPE Initialize(ABI::Windows::ApplicationModel::Core::ICoreApplicationView* applicationView) override;
|
|
HRESULT STDMETHODCALLTYPE SetWindow(ABI::Windows::UI::Core::ICoreWindow* window) override;
|
|
HRESULT STDMETHODCALLTYPE Load(HSTRING entryPoint) override;
|
|
HRESULT STDMETHODCALLTYPE Run(void) override;
|
|
HRESULT STDMETHODCALLTYPE Uninitialize(void) 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;
|
|
IFrameworkView* m_realView;
|
|
}; |