随笔分类 -  VC++

摘要: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)

摘要:Robert Kuster,20 Aug 2003Download entire package - 157.31 KBDownload WinSpy - 20 KB(demo application)ContentsIntroductionWindows HooksThe CreateRemoteThread & LoadLibrary TechniqueInterprocess CommunicationsThe CreateRemoteThread & WriteProcessMemory TechniqueHow to Subclass a Remote Control 阅读全文

posted @ 2013-02-03 18:01 All IN 阅读(416) 评论(0) 推荐(0)

摘要:bool EnableDebugPrivilege() { HANDLE hToken; LUID sedebugnameValue; TOKEN_PRIVILEGES tkp; if (!OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) { return FALSE; } if (!LookupPrivilegeValue(NULL, SE_DEBUG_NAME,... 阅读全文

posted @ 2013-02-01 01:16 All IN 阅读(932) 评论(0) 推荐(0)

摘要:View Code void WalkUserSpace(){ SYSTEM_INFO stSysInf; MEMORY_BASIC_INFORMATION st_MemBasicInfor; memset(&stSysInf, 0, sizeof(SYSTEM_INFO)); memset(&st_MemBasicInfor, 0, sizeof(MEMORY_BASIC_INFORMATION)); GetSystemInfo(&stSysInf); DWORD dwUserAd... 阅读全文

posted @ 2013-01-31 09:11 All IN 阅读(148) 评论(0) 推荐(0)

导航