04 2013 档案

摘要:#include <Windows.h>#include <stdio.h>DWORD __stdcall WorkThread();void log(const char* format, ...);#define LOGON 1#if LOGON#define Log log#else#define Log //#endifint main(){DWORD dwThreadID = 0;HANDLE hSetForeThread = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)WorkThread, NULL, 阅读全文

posted @ 2013-04-18 20:26 All IN 阅读(171) 评论(0) 推荐(0)

摘要:namespace ltl{template <class T>void swap(T &a, T &b) { T c = a; a = b; b = c; }class CSize : public SIZE{public:CSize() {}CSize(int lx, int ly) { cx = lx, cy = ly; }void Set(int lx, int ly) { cx = lx, cy = ly; }operator += (const SIZE &sz) { cx += sz.cx, cy += sz.cy; }operator -= 阅读全文

posted @ 2013-04-03 10:27 All IN 阅读(341) 评论(0) 推荐(0)

摘要:#include <Windows.h>#include <stdlib.h>#include <stdio.h>#include "RepProc.h"typedef struct _WND_INFO{ HWND hWnd; DWORD dwProcessId;}WNDINFO, *LPWNDINFO;void log(const char* format, ...);HWND GetProcessMainWnd();BOOL CALLBACK MyEnumWndProc(HWND hWnd,LPARAM lParam);void Be 阅读全文

posted @ 2013-04-01 07:37 All IN 阅读(255) 评论(0) 推荐(0)

导航