Files
WinDurango/dlls/kernelx/FrameworkViewSourceWrapper.h
Patoke 66a77b5bcb [d3d11x] add debug macros for hresult functions
[d3d11x] found error with CreateShaderResourceView, it happens due to an invalid 2D texture
[d3d11x] use proper refcounts from IGraphicsUnknown on DXGI related classes
[kernelx] use the same calling convention as IGraphicsUnknown for m_RefCount
[kernelx] add filesystem hooks to resolve relative file calls
2025-01-09 00:59:07 -03: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;
};