I don't want it to open in my application with a double click in explorer. I want to be able to right click on the filename and have my application name show up on an "Open With" list.
I've got it working in Windows2000, but it doesn't seem to work on NT/98 machines. Is this not a feature of these other OS or is it just a different setup?
Here is how I'm doing the association:
I'm creating a set of keys in the HKEY_CLASSES_ROOT
Applications
app.exe
shell
open
command
To set up the application parameters.
Then within HKEY_CURRENT_USER I create a key like below:
Software
Microsoft
Windows
CurrentVersion
Explorer
FileExts
.xml
There, I query the OpenWithList to see if my app is already reqistered there. If it is, great, otherwise, I add
a string value with the data value of app.exe. I also add the string value to the MRUList so the app shows up on the OpenWith list in explorer.
I hope it is clear what I'm doing. Any help would be very much appreciated.