Initial commit: Complete open-source Decal rebuild
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>
This commit is contained in:
commit
d1442e3747
1382 changed files with 170725 additions and 0 deletions
91
Native/Include/EventsImpl.h
Normal file
91
Native/Include/EventsImpl.h
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
// EventsImpl.h
|
||||
// Declaration of helper class for implementing plugins
|
||||
|
||||
#ifndef _EVENTSIMPL_H_
|
||||
#define _EVENTSIMPL_H_
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< UINT nID, class cImpl, const IID *pIID, const GUID *pLIBID >
|
||||
class IControlEventsImpl
|
||||
: public IDispEventImpl< nID, cImpl, pIID, pLIBID, 1, 0 >
|
||||
{
|
||||
protected:
|
||||
void advise( IUnknown *pUnk )
|
||||
{
|
||||
HRESULT hRes = DispEventAdvise( pUnk );
|
||||
|
||||
_ASSERTE( SUCCEEDED( hRes ) );
|
||||
}
|
||||
|
||||
void unadvise( IUnknown *pUnk )
|
||||
{
|
||||
HRESULT hRes = DispEventUnadvise( pUnk );
|
||||
|
||||
_ASSERTE( SUCCEEDED( hRes ) );
|
||||
}
|
||||
};
|
||||
|
||||
#define DISPID_DESTROY 1
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< UINT nID, class cImpl >
|
||||
class ICommandEventsImpl
|
||||
: public IControlEventsImpl< nID, cImpl, &DIID_ICommandEvents, &LIBID_DecalPlugins >
|
||||
{
|
||||
};
|
||||
|
||||
#define DISPID_HIT 2
|
||||
#define DISPID_UNHIT 3
|
||||
#define DISPID_ACCEPTED 4
|
||||
#define DISPID_CANCELED 5
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< UINT nID, class cImpl >
|
||||
class IPagerEventsImpl
|
||||
: public IControlEventsImpl< nID, cImpl, &DIID_IPagerEvents, &LIBID_DecalPlugins >
|
||||
{
|
||||
};
|
||||
|
||||
#define DISPID_CHANGE 6
|
||||
#define DISPID_GETNEXTPOSITION 7
|
||||
#define DISPID_UPDATE_POSITION 6
|
||||
#define DISPID_GET_NEXT_POSITION 7
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< UINT nID, class cImpl >
|
||||
class IViewEventsImpl
|
||||
: public IControlEventsImpl< nID, cImpl, &DIID_IViewEvents, &LIBID_DecalPlugins >
|
||||
{
|
||||
};
|
||||
|
||||
#define DISPID_ACTIVATE 8
|
||||
#define DISPID_DEACTIVATE 9
|
||||
#define DISPID_SIZE 13
|
||||
#define DISPID_SIZING 14
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
template< UINT nID, class cImpl >
|
||||
class IInputEventsImpl
|
||||
: public IControlEventsImpl< nID, cImpl, &DIID_IInputEvents, &LIBID_DecalPlugins >
|
||||
{
|
||||
};
|
||||
|
||||
#define DISPID_BEGIN 10
|
||||
#define DISPID_END 11
|
||||
#define DISPID_PAUSE 12
|
||||
|
||||
#endif // _EVENTSIMPL_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue