Hi,
is something changed into the FWH registry functions ?
I need to find the winword.exe path and this function that scan the windows registry doesn't runs anymore with FWH9.10
Any ideas ?
#define HKEY_CLASSES_ROOT 2147483648
#define HKEY_CURRENT_USER 2147483649
#define HKEY_LOCAL_MACHINE 2147483650
#define HKEY_USERS 2147483651
#define HKEY_PERFORMANCE_DATA 2147483652
#define HKEY_CURRENT_CONFIG 2147483653
#define HKEY_DYN_DATA 2147483654
#include "FiveWin.ch"
function Main()
cPath:=FileFind("WINWORD.EXE")
msginfo(cPath)
RETURN
function filefind
paramet cFile
local cValue,nhandle
cValue:=""
if RegOpenKey( HKEY_LOCAL_MACHINE,"SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths", @nHandle ) == 0
RegQueryValue( nHandle, cFile, @cValue )
RegCloseKey( nHandle )
msginfo(cValue)
cValue:=ansitooem(cValue)
cValue:=alltrim(cValue)
cValue:=substr(cvalue,1,len(cvalue)-1)
endif
return(cValue)