#include "stdafx.h" #include "WxMgr.h" #include "Global.h" CWxMgr::CWxMgr() { } CWxMgr::~CWxMgr() { } BOOL CWxMgr::AttachUnMgrWxProc() { vector vtWxProcId = FindAllProcess(WECHAT); for ( DWORD pid:vtWxProcId) { if ( m_mapWx.count(pid) == 0) { CWxObject wxObj(pid, g_szDynamicLibraryPath); wxObj.InjectDynamicLibrary(); wxObj.FindWxMainWnd(); m_mapWx.insert(pair(pid, wxObj)); } } return TRUE; }