摘要:#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,
阅读全文
摘要: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 -=
阅读全文
摘要:#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
阅读全文