开发者

Get the handle to a process using its image name

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜