开发者

Get the handle to a process using its image name

开发者 https://www.devze.com 2023-01-11 22:17 出处:网络
I need to obtain the Handle to a process using its Image Name so that I can use it with TerminateProcess

I need to obtain the Handle to a process using its Image Name so that I can use it with TerminateProcess function. 开发者_如何学运维Any help will be appreciated

Farid


Use CreateToolhelp32Snapshot and Process32First/Next to iterate the running processes. Figuring out which one you'd want to abort if there's more than one instance of the process is of course not really possible.

0

精彩评论

暂无评论...
验证码 换一张
取 消