106 lines
3.0 KiB
C++
106 lines
3.0 KiB
C++
#include "stdafx.h"
|
|
|
|
#pragma once
|
|
#include <2015RemoteDlg.h>
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// CMachineDlg dialog
|
|
|
|
// TODO: ʵÏÖIP»ñÈ¡.
|
|
#include "common/location.h"
|
|
|
|
|
|
class CMachineDlg : public DialogBase
|
|
{
|
|
public:
|
|
CMachineDlg(CWnd* pParent = NULL, Server* pIOCPServer = NULL, ClientContext* pContext = NULL);
|
|
~CMachineDlg();
|
|
|
|
enum { IDD = IDD_MACHINE };
|
|
CListCtrl m_list;
|
|
CTabCtrl m_tab;
|
|
|
|
void OnReceiveComplete();
|
|
static int CALLBACK CompareFunction(LPARAM lParam1, LPARAM lParam2, LPARAM lParamSort);
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
afx_msg void OnClose();
|
|
virtual BOOL OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult);
|
|
|
|
int m_nSortedCol;
|
|
bool m_bAscending;
|
|
bool m_bIsReceiving;
|
|
CMy2015RemoteDlg* m_pMainWnd;
|
|
CStatusBar m_wndStatusBar;
|
|
IPConverter* m_IPConverter;
|
|
CLocker m_Locker;
|
|
bool IsReceivingData()
|
|
{
|
|
m_Locker.Lock();
|
|
auto r = m_bIsReceiving;
|
|
m_Locker.Unlock();
|
|
return r;
|
|
}
|
|
void SetReceivingStatus(bool b)
|
|
{
|
|
m_Locker.Lock();
|
|
m_bIsReceiving = b;
|
|
m_Locker.Unlock();
|
|
}
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnSize(UINT nType, int cx, int cy);
|
|
afx_msg void OnDblclkList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnRclickList(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnSelChangeTab(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg void OnSelChangingTab(NMHDR* pNMHDR, LRESULT* pResult);
|
|
afx_msg LRESULT OnShowMessage(WPARAM wParam, LPARAM lParam);
|
|
afx_msg LRESULT OnWaitMessage(WPARAM wParam, LPARAM lParam);
|
|
void SortColumn(int iCol, bool bAsc);
|
|
CString oleTime2Str(double time);
|
|
void reflush();
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
public:
|
|
void SendToken(BYTE bToken);
|
|
void AdjustList();
|
|
void OpenInfoDlg();
|
|
void SetClipboardText(CString& Data);
|
|
CString __MakePriority(DWORD dwPriClass);
|
|
void DeleteList();
|
|
void ShowProcessList(); //½ø³Ì
|
|
void ShowWindowsList();//´°¿Ú
|
|
void ShowNetStateList();//ÍøÂç
|
|
void ShowSoftWareList();//Èí¼þÁбí
|
|
void ShowIEHistoryList();//ä¯ÀÀ¼Ç¼
|
|
void ShowFavoritesUrlList();//ÊղؼÐ
|
|
void ShowServiceList(); //·þÎñ
|
|
void ShowTaskList();//¼Æ»®ÈÎÎñ
|
|
void ShowHostsList();//HOSTS
|
|
|
|
//¶ÔÓ¦²Ëµ¥
|
|
void ShowProcessList_menu(); //½ø³Ì
|
|
void ShowWindowsList_menu();//´°¿Ú
|
|
void ShowNetStateList_menu();//ÍøÂç
|
|
void ShowSoftWareList_menu();//Èí¼þÁбí
|
|
void ShowIEHistoryList_menu();//ä¯ÀÀ¼Ç¼
|
|
void ShowFavoritesUrlList_menu();//ÊղؼÐ
|
|
void ShowServiceList_menu();//·þÎñ
|
|
void ShowTaskList_menu();//¼Æ»®ÈÎÎñ
|
|
void ShowHostsList_menu();//HOSTS
|
|
};
|
|
|
|
struct Browsinghistory {
|
|
TCHAR strTime[100];
|
|
TCHAR strTitle[1024];
|
|
TCHAR strUrl[1024];
|
|
};
|
|
|
|
struct InjectData {
|
|
DWORD ExeIsx86;
|
|
DWORD mode; //×¢Èëģʽ
|
|
DWORD dwProcessID; //½ø³ÌID
|
|
DWORD datasize; //±¾µØÊý¾Ý³ß´ç
|
|
TCHAR strpath[1024]; //Ô¶³ÌÂäµØÄ¿Â¼
|
|
};
|