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>
100 lines
2.5 KiB
C++
100 lines
2.5 KiB
C++
// DenAgentDlg.h : header file
|
|
//
|
|
|
|
#if !defined(AFX_DENAGENTDLG_H__2E961411_B570_4DAA_B5F1_89B9714C39EC__INCLUDED_)
|
|
#define AFX_DENAGENTDLG_H__2E961411_B570_4DAA_B5F1_89B9714C39EC__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
|
|
#include <Decal.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CDenAgentDlg dialog
|
|
|
|
class CDenAgentDlg : public CDialog
|
|
{
|
|
// Construction
|
|
public:
|
|
CDenAgentDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
// Dialog Data
|
|
//{{AFX_DATA(CDenAgentDlg)
|
|
enum { IDD = IDD_DENAGENT_DIALOG };
|
|
CListCtrl m_wndPlugins;
|
|
//}}AFX_DATA
|
|
|
|
// ClassWizard generated virtual function overrides
|
|
//{{AFX_VIRTUAL(CDenAgentDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
|
|
//}}AFX_VIRTUAL
|
|
|
|
struct cPlugin
|
|
{
|
|
CLSID m_id;
|
|
LPCTSTR m_group;
|
|
bool m_bEnabled;
|
|
int m_dragimage;
|
|
|
|
cPlugin ( REFCLSID clsid, LPCTSTR group, bool bEnabled, int dragimage )
|
|
: m_id ( clsid ),
|
|
m_group ( group ),
|
|
m_bEnabled ( bEnabled ),
|
|
m_dragimage ( dragimage )
|
|
{
|
|
}
|
|
};
|
|
|
|
HIMAGELIST m_hDragImage;
|
|
cPlugin *m_pCurrentDrag;
|
|
|
|
int getDragInsertBefore ( CPoint &ptClient );
|
|
|
|
void updateDecal(_variant_t vCodeBase);
|
|
void loadPluginList ();
|
|
|
|
void GetFileInfoBase(LPCTSTR pszFilename, LPCTSTR pszRootElement, LPCTSTR pszVElement, CString &szFileInfo);
|
|
void updateFileInfo();
|
|
|
|
public:
|
|
bool m_bDoingUpdate;
|
|
bool m_bDoUpdate;
|
|
|
|
CImageList m_groups;
|
|
|
|
void convertVersion( LPTSTR szVersion, DWORD &dwVersionMajor, DWORD &dwVersionMinor );
|
|
|
|
int iReleaseMajor, iReleaseMinor;
|
|
int iBuildMajor, iBuildMinor;
|
|
|
|
CComPtr<IDecal> m_pDecal;
|
|
|
|
// Implementation
|
|
protected:
|
|
HICON m_hIcon;
|
|
|
|
// Generated message map functions
|
|
//{{AFX_MSG(CDenAgentDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnRefresh();
|
|
afx_msg void OnAddremove();
|
|
afx_msg void OnUpdate();
|
|
afx_msg void OnOptions();
|
|
afx_msg void OnDeleteitemPlugins(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnClickPlugins(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnBegindragPlugins(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
|
|
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
|
|
//}}AFX_MSG
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
afx_msg void OnBnClickedDelete();
|
|
afx_msg void OnBnClickedExport();
|
|
};
|
|
|
|
//{{AFX_INSERT_LOCATION}}
|
|
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
|
|
|
|
#endif // !defined(AFX_DENAGENTDLG_H__2E961411_B570_4DAA_B5F1_89B9714C39EC__INCLUDED_)
|