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