通过进程ID获取进程名
2010-10-18 13:32
274 查看
uses TLhelp32 function GetProcessNameById(const AID: Integer): String; var h:thandle; f:boolean; lppe:tprocessentry32; begin Result := ''; h := CreateToolhelp32Snapshot(TH32cs_SnapProcess, 0); lppe.dwSize := sizeof(lppe); f := Process32First(h, lppe); while integer(f) <> 0 do begin if Integer(lppe.th32ProcessID) = AID then begin Result:= StrPas(lppe.szExeFile); break; end; f := Process32Next(h, lppe); end; end
相关文章推荐
- 通过进程ID获取基地址
- 通过进程ID获取窗口句柄(微软)
- 进程管理:通过父进程ID获取子进程ID
- 如何通过进程ID获取进程名
- 通过进程ID获取进程名
- 通过Windows进程ID获取窗口句柄
- 通过进程ID获取进程主窗口句柄
- WIN通过子进程获取父进程ID
- 通过进程名获取进程id
- 通过进程名获取进程ID
- 通过进程名称获取进程ID、通过子进程ID获取其父进程ID及通过进程ID获取进程名称
- 通过进程ID获取最顶层窗口句柄
- 通过进程ID获取基地址
- 通过进程名或进程ID获取进程句柄,窗口句柄
- 通过进程ID获取基地址
- 通过进程id获取窗口句柄
- 如何通过进程名获取进程ID
- VC++ 通过进程名或进程ID获取进程句柄
- 通过进程名获取进程ID
- VC下通过进程ID获取进程镜像文件路径的方法及其存在的缺陷