They normally don't waste their time with such things.
If a determined and skilled programmer wants to interfere with software that is running on their computer they will find a way to do so no matter what preventions you attempt. Hooking is a more advanced topic beyond the abilities of the general public -- just be happy with that and move on.
More importantly, why do you think you want to do this? There may be a better solution for the problem you're trying to solve.
If you really want to do this you it should be possible, but it will be circumvented and probably isn't worth spending lots of time and effort on.