Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding a file type programmatically.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00253168
Message ID:
00253218
Vues:
21
Thanks, Ed for pointing me in the right direction. I will give that a look see.

James


>>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
James Moore
Owner/Developer
Ministry Tracking Software, Inc.
www.youthtrack.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform