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>
214 lines
6.6 KiB
C#
214 lines
6.6 KiB
C#
using System.Runtime.CompilerServices;
|
|
using System.Runtime.InteropServices;
|
|
using System.Security;
|
|
using Decal.Interop.Core;
|
|
|
|
namespace Decal.Interop.Render;
|
|
|
|
[ComImport]
|
|
[SuppressUnmanagedCodeSecurity]
|
|
[Guid("89D2D46A-FA62-466E-9D29-1A7344C30BD1")]
|
|
[TypeLibType(4288)]
|
|
public interface IHUDView : IRenderScalable
|
|
{
|
|
[DispId(1610743808)]
|
|
new bool Lost
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743808)]
|
|
get;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743809)]
|
|
[TypeLibFunc(64)]
|
|
new void SetSurface([In][MarshalAs(UnmanagedType.IUnknown)] object pSurface);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743810)]
|
|
[return: MarshalAs(UnmanagedType.IUnknown)]
|
|
new object GetSurface();
|
|
|
|
[DispId(1610743811)]
|
|
new tagRECT Region
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743811)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743811)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743813)]
|
|
new void Fill([In] ref tagRECT FillArea, int Color = 0);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743814)]
|
|
new void Clear([In] ref tagRECT ClearArea);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743815)]
|
|
new void BeginRender([In] bool bFilterTexture = false);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743816)]
|
|
new void EndRender();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743817)]
|
|
new void BeginText([In][MarshalAs(UnmanagedType.BStr)] string FontName, int lHeight, int lWeight, [In] bool bItalic = false);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743818)]
|
|
new void EndText();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743819)]
|
|
new void DrawPortalImage([In] int lPortalFile, ref tagRECT DestArea);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743820)]
|
|
new void DrawPortalImageEx([In] int lPortalFile, int lAlpha, ref tagRECT SrcArea, ref tagRECT DestArea);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743821)]
|
|
new void DrawImage([In] int pBuffer, int lSize, ref tagRECT DestRegion, int lColorKey);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743822)]
|
|
new void WriteText([In] ref tagRECT Region, int lColor, int lFormat, [MarshalAs(UnmanagedType.BStr)] string Text);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743823)]
|
|
new void TilePortalImage([In] int lPortalFile, ref tagRECT DestArea);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743824)]
|
|
new void TilePortalImageEx([In] int lPortalFile, ref tagRECT SrcArea, ref tagRECT DestArea);
|
|
|
|
[DispId(1610743825)]
|
|
new tagRECT Constraints
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743825)]
|
|
[TypeLibFunc(64)]
|
|
get;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610743826)]
|
|
[return: MarshalAs(UnmanagedType.Interface)]
|
|
new RenderTargetWrapper Constrain([In] ref tagRECT Region);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809344)]
|
|
new void ScaleTo([In] ref tagRECT pArea);
|
|
|
|
[DispId(1610809345)]
|
|
new float ScaleFactor
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809345)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809345)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[DispId(1610809347)]
|
|
new bool Scaling
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809347)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809347)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[DispId(1610809349)]
|
|
new tagRECT ScaleRect
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610809349)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610874880)]
|
|
int ID
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[TypeLibFunc(64)]
|
|
[DispId(1610874880)]
|
|
get;
|
|
}
|
|
|
|
[DispId(1610874881)]
|
|
bool Enabled
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874881)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874881)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874883)]
|
|
void SetBackground([In][MarshalAs(UnmanagedType.Interface)] HUDBackground pBackground);
|
|
|
|
[DispId(1610874884)]
|
|
float Angle
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874884)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874884)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[DispId(1610874886)]
|
|
int Alpha
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874886)]
|
|
get;
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874886)]
|
|
[param: In]
|
|
set;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874888)]
|
|
void PushClipRegion([In] ref tagRECT Region);
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874889)]
|
|
void PopClipRegion();
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874890)]
|
|
void RemoveClipping();
|
|
|
|
[DispId(1610874891)]
|
|
bool IsClipped
|
|
{
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874891)]
|
|
get;
|
|
}
|
|
|
|
[MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)]
|
|
[DispId(1610874892)]
|
|
void MeasureText([In][MarshalAs(UnmanagedType.BStr)] string Text, out tagRECT pRet);
|
|
}
|