In my MSI installer custom-action handler (done with C++) I cannot obtain the SE_DEBUG_NAME privilege to be able to open and terminate a process, thus I have to resort to doing it with the taskkill
utility as such:
taskkill /f /pid 1230
What I need to know are the return codes from the taskkill
to be able to see if the process was terminated or not and the reasons why it may not have been.
I was able to obtain the following experimentally on my Windows 8 machine:
0 = success
1 = access denied
128 = no such process
Is there an official documentation for these?