As a follow-up to Filesystem Hook for .doc open C# i'm trying to figure out the following for a WPF application.
I want to replace the file association for .doc & .docx with my own program which will run at windows start-up.
My program will then simply open a word with the documented requested but with the added benefit of being able to hook into events like Office.Interop.Word.DocumentOpen
- this way i'll be able to get everything thats ever opened by word without a filesystemwatcher or something similar.
What is the best practice way of doing this and how do I overwrite Words' association with the file?