>Does anyone know how to add a new registered file type programmatically? I want to add the following:
>
>Description of type: URL:MailTo Protocol
>Confirm Open After Download (checked)
>Enable Quick View (checked)
>
>ACTIONS
>Action: open
>Application used to perform action: "C:\Program Files\Microsoft Office\Office\outlook.exe" -c IPM.Note /m "%1"
>
>I imagine this would be a Win32API call. If someone has done this before and wouldn't mind sharing a code example, I would appreciate it.
Actually, it's just a few registry entries underh HKEY_CLASSES_ROOT; one to create the association between a file type and an app, and the other a set of keys that describe the app. Take a look at how HKEY_CLASSES_ROOT\.DOC points to the handler for .DOC files; follow the app references and you'll see how the necessary entries should be created.
>
>TIA,
>
>James