Bat program kill process, process will receive the signal? Or what would trigger events?
CodePudding user response:
Bat is invoked taskkill. Exe to kill process,By using apimonitor taskkill. Exe calls to the API, found the sentence like this:
Taskkill. Exe lstrlenW (" success: give process "% s" send the stop signal, process of PID % d, ")
This shows that is certainly will send process termination signal,
But, termination signal is sent via what function?
Look up to this:
Taskkill. Exe PostMessageW (0 x00080666, WM_CLOSE, 0, 0)
Is sent a WM_CLOSE message
If the process without the window, or do not respond to WM_CLOSE message?
Behind this I don't have the analysis to the,,, analyse,