首页 > TAG信息列表 > hsnap
Win32 进程操作
创建线程 #include<iostream> #include<windows.h> using namespace std; DWORD WINAPI PROCESST1(LPVOID param); DWORD WINAPI PROCESST2(LPVOID param); DWORD WINAPI PROCESST3(LPVOID param); int main3() { HANDLE Thread1, Thread2, Thread3; Thre根据进程名获取进程PID
//根据进程名获取PID DWORD CBiaoBai1Dlg::GetProcessIdByProcessName(char* pszProcessName) { //1.创建进程快照 HANDLE hSnap = CreateToolhelp32Snapshot( TH32CS_SNAPPROCESS, //遍历进程快照1 0); //进程PIC++.模块1
#include <TlHelp32.h> #include <vector> BOOL TraversalModule1(OUT std::vector<MODULEENTRY32> &vec, IN DWORD dwPid) { /************************************************************************/ /* typedef struct tagMODULEEN