You should write a "shell extension". You can find a sample in VC's samples.