Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieval of icons associated with files/applications
Message
 
À
13/08/2001 12:22:20
Dennis Little
Ist Choice Travel
Glos, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00542621
Message ID:
00543093
Vues:
28
>George
>
>What value does "lcValue" have, please?
>
>Dennis

The variable can receive different looking pieces of information. For example, in my sample using the ".doc" extension, what it will have is "Word.Document.8" (on my machine). If, however, the extension was ".htm" it will contain "htmlfile".

In both instances these would be used to find the path in the registry where the "DefaultIcon" key is. In the first case, it would be:

HKEY_CLASSES_ROOT\Word.Document.8\DefaultIcon

In the second:

HKEY_CLASSES_ROOT\htmlfile\DefaultIcon

In both instances, the Default value in the key points to the source of the icon. Again, in both instances, these are executables, but could be an icon file.

With the registry class provided by the FFC, if the root hive (in this case HKEY_CLASSES_ROOT) isn't specified, then it uses HKEY_CLASSES_ROOT.
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