OpenProcess(), in turn, requires the process ID. You can get the process ID by enumerating the currently running processes. Once you find a match for "UpdateUI.exe", then you can OpenProcess() and then TerminateProcess().
phikaa, since I'm not familiar with the command you post, I assume that it is for Linux/Unix? If so, please note that the topic is under the "Windows Programming" forum.
It isn't irrelevant -- it answers the OP's question: how do I kill a process?
It does require you to start a new process (the ntsd.exe) and it also requires you to know the PID of the process to kill...
However, if you are going to use the command prompt, you can also use the taskkill Windows utility, which gives a few more options for selecting which process(es) to kill. (Works with XP and later.)
Being this a C++ forum, I'd say a command-line solution is irrelevant. When someone asks a question in these forums, I think it is expected to do it via C++.
Stop your spamming on all forums with your BS 'frostcode' : its only complete newbie and horrible pseudo-code
Read MSDN for the right method to get the PID
Read the Petzold to learn Windows programming .