Function GetSrvr * Author: George Tasker * Date: July 19, 2000 - 11:45 AM * Purpose: Retrieves the file location * of an in process OLE automation server * ActiveX control LPARAMETER pcServer && The ProgID #INCLUDE REGISTRY.H LOCAL oReg, lcresult, lcCLSID, lnerr lcresult = "" SET CLASSLIB TO REGISTRY ADDITIVE oReg = CREATEOBJECT('Registry') RELEASE CLASSLIB REGISTRY IF oReg.OpenKey(pcServer + '\CLSID') = ERROR_SUCCESS lcCLSID = "" lnerr = oReg.GetKeyValue('', @lcCLSID) IF lnerr = ERROR_SUCCESS oReg.CloseKey() lckey = "Software\Classes\CLSID\" + lcCLSID + "\InProcServer32" IF oReg.OpenKey(lckey, HKEY_LOCAL_MACHINE) = ERROR_SUCCESS lcresult = "" = oReg.GetKeyValue('', @lcresult) oReg.CloseKey() ENDIF ENDIF oReg.CloseKey() ENDIF RETURN lcresult