I'm writing a program for my school, which is supposed to terminate some processes opened by user, like for example taskmgr, or regedit etc. How to do it? I know files names, and I'm not sure how to get their PIDs.
For example, nasty student want to bypass security program which is blocking "adult" sites, or chans etc. And now I have to block executing files - only two of them - I mean taskmgr and regedit.