// Fill the size of the structure before using it. me32.dwSize = sizeof(MODULEENTRY32); // Walk the module list of the process, and find the module of // interest. Then copy the information to the buffer pointed // to by lpMe32 so that it can be returned to the caller. if (Module32First(hModuleSnap, &me32)) { do { if (me32.th32ModuleID == dwModuleID) { CopyMemory (lpMe32, &me32, cbMe32); bFound = TRUE; } } while (!bFound && Module32Next(hModuleSnap, &me32)); bRet = bFound; // if this sets bRet to FALSE, dwModuleID // no longer exists in specified process } else bRet = FALSE; // could not walk module list // Do not forget to clean up the snapshot object. CloseHandle (hModuleSnap); return (bRet); } 三、提高权限: BOOL EnableDebugPrivilege() |
閺€鎯版閹存劕濮�閺屻儳婀呴弨鎯版>>
正在阅读:VC++中如何获取进程模块的信息VC++中如何获取进程模块的信息
2004-03-19 10:39
出处:CSDN
责任编辑:linjixiong
键盘也能翻页,试试“← →”键