Hello everyone, 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
Hello everyone, 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.