Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

[Débutant] trouver le nom d'un processus à partir de son PID

3 réponses
Avatar
MH
[PC - Win98se]

Bonjour,
Quelle(s) fonction(s) (API) utiliser pour trouver le nom d'un processus à
partir de son PID ?
Merci de me venir en aide.
MH

3 réponses

Avatar
Christian ASTOR
MH a écrit:
[PC - Win98se]
Quelle(s) fonction(s) (API) utiliser pour trouver le nom d'un processus à
partir de son PID ?



ToolHelp (szExeFile)
(ou GetModuleFileNameEx(), GetModuleBaseName() si c'était sous NT/2K/...)
Avatar
MH
> ...
ToolHelp (szExeFile)



MERCI ; ))
Avatar
MH
Pour ceux que ça intéresse :

Les fonctions à utiliser [Win98] :

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/createtoolhelp32snapshot.asp
CreateToolhelp32Snapshot

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/process32first.asp
Process32First

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/process32next.asp
Process32Next

MH ; ))