1234567891011121314151617181920212223242526272829 |
- #include "stdafx.h"
- #include "WxMgr.h"
- #include "Global.h"
- CWxMgr::CWxMgr()
- {
- }
- CWxMgr::~CWxMgr()
- {
- }
- BOOL CWxMgr::AttachUnMgrWxProc()
- {
- vector<DWORD> 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<DWORD, CWxObject>(pid, wxObj));
- }
- }
- return TRUE;
- }
|