Information générale
Catégorie:
Fonctions Windows API
Thanks, Sergey. Maybe you could help me further: I am getting an error -106 : "data type for value is not a data string".
I see in the registry the HideFileExt type is REG_DWORD.
My code is:
SET proc to HOME()+"samples\classes\registry.prg"
o=CREATEOBJECT("registry")
? TRANSFORM(o.getregkey("HideFileExt", @cValue, "Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced", HKEY_CURRENT_USER)
Any suggestions?
Thank you.
>You can try to read the registry key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt.
>
>>Does anyone know how to programatically read the "Hide File Extension" option of Windows Explorer using a Windows API? I've been searching with no luck so far.
>>
>>I handle tech support calls fairly often that deal with a bug in Word 97 automation having to do with this setting, and I would like to programmatically check for this setting on app startup.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement