2011年9月20日星期二

ODbgScript源碼學習(十九)

LogWindows.h:

#define LOG_MSG_LEN TEXTLEN //定義記錄消息長度

// 腳本執行表This is the table for Script Execution
typedef struct t_wndlog_data {

unsigned long line; //行
unsigned long size;             // 在地址空間由元素佔用大小Size occupied by element in address space
unsigned long type;             // 數據元素類型Type of data element, TY_xxx
unsigned long eip; //當前地址eip
char     message[LOG_MSG_LEN];

} t_logwnd_data; //記錄窗口數據結構

LRESULT CALLBACK wndlog_winproc(HWND hw,UINT msg,WPARAM wp,LPARAM lp); //指針回調函數記錄窗口的過程

void initLogWindow(); //初始化記錄窗口

int wndlog_sort_function(const t_sortheader *p1,const t_sortheader *p2,const int sort); //記錄窗口分類函數
int wndlog_get_text(char *s, char *mask, int *select, t_sortheader *ph, int column); //獲取文本

int add2log(string & command); //添加到記錄(字符串型)
int add2log(char * command); //添加到記錄(char型)

int add2logMasked(char* message,char* mask); //添加到記錄

void clearLogLines(); //清除記錄行

没有评论:

发表评论