All 5 phases of the open-source Decal rebuild: Phase 1: 14 decompiled .NET projects (Interop.*, Adapter, FileService, DecalUtil) Phase 2: 10 native DLLs rewritten as C# COM servers with matching GUIDs - DecalDat, DHS, SpellFilter, DecalInput, DecalNet, DecalFilters - Decal.Core, DecalControls, DecalRender, D3DService Phase 3: C++ shims for Inject.DLL (D3D9 hooking) and LauncherHook.DLL Phase 4: DenAgent WinForms tray application Phase 5: WiX installer and build script 25 C# projects building with 0 errors. Native C++ projects require VS 2022 + Windows SDK (x86). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
81 lines
2.2 KiB
C++
81 lines
2.2 KiB
C++
// View.h : Declaration of the cView
|
|
|
|
#ifndef __VIEW_H_
|
|
#define __VIEW_H_
|
|
|
|
#include "resource.h" // main symbols
|
|
#include "InjectCP.h"
|
|
#include "SinkImpl.h"
|
|
class cRootLayer;
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// cView
|
|
class ATL_NO_VTABLE cView :
|
|
public CComObjectRootEx<CComMultiThreadModel>,
|
|
public IConnectionPointContainerImpl<cView>,
|
|
public IProvideClassInfo2Impl< &CLSID_View, &IID_IViewDisp, &LIBID_DecalPlugins >,
|
|
public IDispatchImpl< IView, &IID_IViewDisp, &LIBID_DecalPlugins >,
|
|
public CProxyIViewEvents< cView >
|
|
{
|
|
public:
|
|
cView()
|
|
{
|
|
}
|
|
|
|
~cView();
|
|
|
|
cRootLayer *m_pRoot;
|
|
|
|
_bstr_t m_strTitle;
|
|
long m_nIcon;
|
|
long m_nIconModule;
|
|
long m_nViewID;
|
|
long m_nWidth;
|
|
long m_nHeight;
|
|
long m_nTop;
|
|
long m_nLeft;
|
|
|
|
// Named controls
|
|
struct cNamedControl
|
|
{
|
|
_bstr_t m_strName;
|
|
CComPtr< IControl > m_pControl;
|
|
};
|
|
|
|
typedef std::list< cNamedControl > cNamedControlList;
|
|
cNamedControlList m_controls;
|
|
|
|
void loadSchema( BSTR strText, IUnknown **ppRootControl );
|
|
void loadSchemaObject( IUnknown *pObject, IUnknown **ppRootControl );
|
|
|
|
BEGIN_COM_MAP(cView)
|
|
COM_INTERFACE_ENTRY(IView)
|
|
COM_INTERFACE_ENTRY(IViewDisp)
|
|
COM_INTERFACE_ENTRY(IDispatch)
|
|
COM_INTERFACE_ENTRY(IProvideClassInfo)
|
|
COM_INTERFACE_ENTRY(IProvideClassInfo2)
|
|
COM_INTERFACE_ENTRY(IConnectionPointContainer)
|
|
COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
|
|
END_COM_MAP()
|
|
|
|
BEGIN_CONNECTION_POINT_MAP(cView)
|
|
CONNECTION_POINT_ENTRY(DIID_IViewEvents)
|
|
END_CONNECTION_POINT_MAP()
|
|
|
|
public:
|
|
// IView Methods
|
|
STDMETHOD(SetIcon)(long icon, /*[optional]*/ VARIANT iconlibrary);
|
|
STDMETHOD(Activate)();
|
|
STDMETHOD(Alert)();
|
|
STDMETHOD(get_Title)(/*[out, retval]*/ BSTR *pVal);
|
|
STDMETHOD(put_Title)(/*[in]*/ BSTR newVal);
|
|
STDMETHOD(LoadSchema)(BSTR strXMLSchema);
|
|
STDMETHOD(LoadControl)(ILayerSite *pParent, long nID, IUnknown *pSource, long *pAssignedID);
|
|
STDMETHOD(get_Control)(BSTR strName, /*[out, retval]*/ IControl * *pVal);
|
|
STDMETHOD(putref_Control)(BSTR strName, /*[in]*/ IControl * newVal);
|
|
STDMETHOD(Deactivate)();
|
|
STDMETHOD(put_Position)(/*[in]*/ LPRECT pVal);
|
|
STDMETHOD(get_Position)(/*[out, retval]*/ LPRECT pVal);
|
|
};
|
|
|
|
#endif //__VIEW_H_
|