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
55
Native/DecalInput/WndMsg.h
Normal file
55
Native/DecalInput/WndMsg.h
Normal file
|
|
@ -0,0 +1,55 @@
|
|||
// WndMsg.h : Declaration of the cWndMsg
|
||||
|
||||
#ifndef __WNDMSG_H_
|
||||
#define __WNDMSG_H_
|
||||
|
||||
#include "resource.h" // main symbols
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// cWndMsg
|
||||
class ATL_NO_VTABLE cWndMsg :
|
||||
public CComObjectRootEx<CComMultiThreadModel>,
|
||||
public CComCoClass<cWndMsg, &CLSID_WndMsg>,
|
||||
public IDispatchImpl<IWndMsg, &IID_IWndMsg, &LIBID_DecalInput>
|
||||
{
|
||||
public:
|
||||
cWndMsg()
|
||||
{
|
||||
}
|
||||
|
||||
long m_hWnd,
|
||||
m_nMsg,
|
||||
m_nWParam,
|
||||
m_nLParam;
|
||||
|
||||
bool m_bEaten;
|
||||
|
||||
void loadMessage( HWND hWnd, UINT nMsg, WPARAM wParam, LPARAM lParam )
|
||||
{
|
||||
m_hWnd = reinterpret_cast< long >( hWnd );
|
||||
m_nMsg = static_cast< long >( nMsg );
|
||||
m_nWParam = static_cast< long >( wParam );
|
||||
m_nLParam = static_cast< long >( lParam );
|
||||
m_bEaten = false;
|
||||
}
|
||||
|
||||
DECLARE_REGISTRY_RESOURCEID(IDR_WNDMSG)
|
||||
|
||||
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
||||
|
||||
BEGIN_COM_MAP(cWndMsg)
|
||||
COM_INTERFACE_ENTRY(IWndMsg)
|
||||
COM_INTERFACE_ENTRY(IDispatch)
|
||||
END_COM_MAP()
|
||||
|
||||
// IWndMsg
|
||||
public:
|
||||
STDMETHOD(get_Eat)(/*[out, retval]*/ VARIANT_BOOL *pVal);
|
||||
STDMETHOD(put_Eat)(/*[in]*/ VARIANT_BOOL newVal);
|
||||
STDMETHOD(get_LParam)(/*[out, retval]*/ long *pVal);
|
||||
STDMETHOD(get_WParam)(/*[out, retval]*/ long *pVal);
|
||||
STDMETHOD(get_Message)(/*[out, retval]*/ long *pVal);
|
||||
STDMETHOD(get_HWND)(/*[out, retval]*/ long *pVal);
|
||||
};
|
||||
|
||||
#endif //__WNDMSG_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue