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:
erik 2026-02-08 18:27:56 +01:00
commit d1442e3747
1382 changed files with 170725 additions and 0 deletions

View file

@ -0,0 +1,87 @@
// SurrogateRemove.h : Declaration of the cSurrogateRemove
#ifndef __SURROGATEREMOVE_H_
#define __SURROGATEREMOVE_H_
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// cSurrogateRemove
class ATL_NO_VTABLE cSurrogateRemove :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<cSurrogateRemove, &CLSID_SurrogateRemove>,
public IDecalUninstall
{
public:
cSurrogateRemove()
{
}
CComBSTR m_strGroup;
CLSID m_clsid;
_bstr_t m_strProgID;
DECLARE_REGISTRY_RESOURCEID(IDR_SURROGATEREMOVE)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(cSurrogateRemove)
COM_INTERFACE_ENTRY(IDecalUninstall)
END_COM_MAP()
// ISurrogateRemove
public:
// IDecalUninstall
STDMETHOD(Prepare)(IDecalEnum *pEnum)
{
pEnum->get_Group( &m_strGroup );
pEnum->get_ComClass( &m_clsid );
CComVariant vProgID;
pEnum->get_Property( _bstr_t( _T( "ProgID" ) ), &vProgID );
if( vProgID.vt == VT_BSTR )
m_strProgID = vProgID.bstrVal;
return S_OK;
}
STDMETHOD(Uninstall)()
{
USES_CONVERSION;
TCHAR szParent[ 255 ];
::_tcscat ( ::_tcscpy ( szParent, _T( "Software\\Decal\\" ) ), OLE2T( m_strGroup ) );
RegKey rk;
if( rk.Open( HKEY_LOCAL_MACHINE, szParent ) != ERROR_SUCCESS )
{
_ASSERT( FALSE );
return E_FAIL;
}
LPOLESTR strCLSID;
::StringFromCLSID( m_clsid, &strCLSID );
LPTSTR szCLSID = OLE2T( strCLSID );
::CoTaskMemFree( strCLSID );
if( rk.RecurseDeleteKey( szCLSID ) != ERROR_SUCCESS )
{
_ASSERT( FALSE );
return E_FAIL;
}
if( m_strProgID.length() > 0 )
{
LPTSTR szProgID = OLE2T( m_strProgID );
RegKey rkcls;
rkcls.Open( HKEY_CLASSES_ROOT, NULL );
rkcls.RecurseDeleteKey( szProgID );
}
return S_OK;
}
};
#endif //__SURROGATEREMOVE_H_