Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving application/extention list from Registry
Message
 
À
14/08/2001 11:25:40
Dennis Little
Ist Choice Travel
Glos, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00543548
Message ID:
00543563
Vues:
13
>How can a list/table/array of Windows applications and/or their extentions be retrieved from the Registry through a WinAPI call.
>
>TIA
>
Dennis,

It's not very difficult, but I imagine it would be rather time consuming. The registry class has an EnumKeys() method. What you'd have to do is Open HKEY_CLASSES_ROOT (via oReg.OpenKey("")), then pass an array by reference to the EnumKeys method. This will load the array with all the keys directly beneath HKEY_CLASSES_ROOT. You'd then have to go through and delete from the array all entries where LEFT(a_array[n], 1) does not equal a period. Optionally, you could create a table and append in directly from the array, then DELETE ALL FOR the above condition. You could then create an instance of the FileReg object in the same class (REGISTRY.VCX) and pass the extensions (without the period) to its GetAppPath() method. This will return the application.

That do it?
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform