Although you may think that all virus prevention programs are the same, they really aren’t. Some may have features that others don’t. Behaviour blocking is one feature that your program should have. This means that the program will block malware from accessing certain areas of your computer. But behavior blocking only works if the program has been updated to scan for the latest behaviors. In-memory threats are another aspect of most programs, which should do regular scans of your system in order to find out whether there is a virus that has infected a file in such a way as to execute itself whenever the infected application runs.
As far as hacking is concerned, it’s unlikely that you will be able to get protection from this threat with a program. Most basic free anti virus software does not offer this kind of protection for this threat specifically. Instead, you may have to think about things like a firewall, some kind of intrusion alert system, and know the signs that indicate you may have been hacked. The same thing is true for spyware, which has its own indicators. In short, finding a program that has the protection you need, along with being aware of the signs of intrusion is a good strategy when trying to prevent infection by virus or malware.