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>
80 lines
No EOL
1.7 KiB
C++
80 lines
No EOL
1.7 KiB
C++
// IdentifyQueue.h : Declaration of the CIdentifyQueue
|
|
|
|
#ifndef __IDQUEUE_H_
|
|
#define __IDQUEUE_H_
|
|
|
|
#pragma once
|
|
#include "resource.h" // main symbols
|
|
|
|
#include "DecalFilters.h"
|
|
#include "DecalNetImpl.h"
|
|
#include "..\include\decal.h"
|
|
#include <deque>
|
|
|
|
typedef void(*RequestPtr)( long );
|
|
|
|
struct IDStruct
|
|
{
|
|
long lObjectID;
|
|
long lTime;
|
|
};
|
|
|
|
// CIdentifyQueue
|
|
|
|
class ATL_NO_VTABLE CIdentifyQueue :
|
|
public IKitchenSink,
|
|
public CComObjectRootEx<CComSingleThreadModel>,
|
|
public CComCoClass<CIdentifyQueue, &CLSID_IdentifyQueue>,
|
|
public IDispatchImpl<IIdentifyQueue, &IID_IIdentifyQueue, &LIBID_DecalFilters, /*wMajor =*/ 1, /*wMinor =*/ 0>,
|
|
public INetworkFilterImpl<CIdentifyQueue>
|
|
{
|
|
public:
|
|
CIdentifyQueue()
|
|
{
|
|
m_bWaiting = false;
|
|
m_lAttempts = 0;
|
|
m_lLastManualAttempt = 0;
|
|
}
|
|
|
|
DECLARE_REGISTRY_RESOURCEID(IDR_IDENTIFYQUEUE)
|
|
DECLARE_PROTECT_FINAL_CONSTRUCT()
|
|
|
|
BEGIN_COM_MAP(CIdentifyQueue)
|
|
COM_INTERFACE_ENTRY(IIdentifyQueue)
|
|
COM_INTERFACE_ENTRY(INetworkFilter2)
|
|
COM_INTERFACE_ENTRY(IDispatch)
|
|
END_COM_MAP()
|
|
|
|
private:
|
|
CComPtr< IDecal > m_pDecal;
|
|
CComPtr< IACHooks > m_pHooks;
|
|
|
|
typedef std::deque< IDStruct * > IDContainer;
|
|
|
|
IDContainer m_Queue;
|
|
bool m_bWaiting;
|
|
long m_lAttempts;
|
|
long m_lLastManualAttempt;
|
|
|
|
// Id Func pointer
|
|
RequestPtr m_pfRequestFunc;
|
|
|
|
void MsgGameEvent( IMessageIterator *pMembers );
|
|
void MsgIDItem( IMessageIterator *pMembers );
|
|
|
|
void Request();
|
|
|
|
public:
|
|
// INetworkFilterImpl
|
|
HRESULT onInitialize();
|
|
HRESULT onTerminate();
|
|
|
|
// INetworkFilter
|
|
STDMETHOD(DispatchServer)( IMessage2 *pMsg );
|
|
|
|
// IKitchenSink
|
|
STDMETHOD(AddToQueue)( long lObjectID );
|
|
STDMETHOD(ShortcircuitID)( long lObjectID );
|
|
};
|
|
|
|
#endif //__IDQUEUE_H_
|