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>
43 lines
872 B
C#
43 lines
872 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using Decal.Interop.Net;
|
|
|
|
namespace Decal.Adapter.Wrappers;
|
|
|
|
public sealed class NetServiceHost : HostBase
|
|
{
|
|
private NetService myService;
|
|
|
|
[EditorBrowsable(EditorBrowsableState.Never)]
|
|
public NetService Underlying => myService;
|
|
|
|
public DecalWrapper Decal
|
|
{
|
|
get
|
|
{
|
|
if (base.MyDecal == null)
|
|
{
|
|
base.MyDecal = new DecalWrapper(myService.Decal);
|
|
}
|
|
return base.MyDecal;
|
|
}
|
|
}
|
|
|
|
public HooksWrapper Actions => CoreManager.Current.Actions;
|
|
|
|
internal NetServiceHost(NetService svc)
|
|
{
|
|
myService = svc;
|
|
base.MyDecal = new DecalWrapper(myService.Decal);
|
|
}
|
|
|
|
public object GetComFilter(string progId)
|
|
{
|
|
return ((dynamic)(INetService)myService).get_FilterVB(progId);
|
|
}
|
|
|
|
public object GetComFilter(Guid clsid, Guid riid)
|
|
{
|
|
return ((dynamic)(INetService)myService).get_Filter(ref clsid, ref riid);
|
|
}
|
|
}
|