I was wondering how you can hide an application from another application. The only example I can currently think of is for exmaple a virus hiding from a anti-virus. (No I don't want to make a virus -.-)

It is obviously possible since it has been done, but how? Is there an option in the default windows or is there a way to write a application to have it do this?