Lines Matching refs:ret

47 	LONG ret;  in lc_isInstalled()  local
48 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ, &hKeySoftware); in lc_isInstalled()
49 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
50 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ, &hKeySoftware); in lc_isInstalled()
51 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
55 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ, &hMozillaPlugins); in lc_isInstalled()
56 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
58 if( ret == ERROR_FILE_NOT_FOUND) in lc_isInstalled()
63ret = RegOpenKeyEx(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0", 0, KEY_READ, &hStarOff… in lc_isInstalled()
64 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
67 if( ret == ERROR_FILE_NOT_FOUND) in lc_isInstalled()
74 ret = -1; in lc_isInstalled()
77 ret = 0; in lc_isInstalled()
82 if(ret == 0){ in lc_isInstalled()
85 ret = RegQueryValueEx (hStarOffice, "Path", NULL, &dType , (LPBYTE) sPluginPath, &dSize); in lc_isInstalled()
86 if(ret == ERROR_SUCCESS){ in lc_isInstalled()
88 ret = 0; in lc_isInstalled()
90 ret = 1; in lc_isInstalled()
93 ret = -1; in lc_isInstalled()
96 ret = -1; in lc_isInstalled()
100 return ret; in lc_isInstalled()
109 LONG ret; in lc_uninstallPlugin() local
110 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_uninstallPlugin()
111 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
112 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_uninstallPlugin()
113 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
117 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ|KEY_WRITE, &hMozillaPlugins); in lc_uninstallPlugin()
118 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
120 if( ret == ERROR_FILE_NOT_FOUND) in lc_uninstallPlugin()
126ret = RegOpenKeyEx(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0", 0, KEY_READ|KEY_WRITE,… in lc_uninstallPlugin()
127 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
130 if( ret == ERROR_FILE_NOT_FOUND) in lc_uninstallPlugin()
136 ret = SHDeleteKey(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0"); in lc_uninstallPlugin()
137 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
138 ret = -1; in lc_uninstallPlugin()
143 return ret; in lc_uninstallPlugin()
155 LONG ret; in lc_installPlugin() local
156 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_installPlugin()
157 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
158 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_installPlugin()
159 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
163 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ|KEY_WRITE, &hMozillaPlugins); in lc_installPlugin()
164 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
176 ret = RegCreateKeyEx(hMozillaPlugins, in lc_installPlugin()
185 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
196 ret = -1; in lc_installPlugin()
199 ret = 0; in lc_installPlugin()
204 if(ret == 0){ in lc_installPlugin()
205 ret = RegSetValueEx( hStarOffice, "Path", 0, REG_SZ, (LPBYTE) sSoPath, strlen(sSoPath) + 1); in lc_installPlugin()
206 if(ret == ERROR_SUCCESS) in lc_installPlugin()
207 ret = 0; in lc_installPlugin()
209 ret = -1; in lc_installPlugin()
212 ret = -1; in lc_installPlugin()
220 return ret; in lc_installPlugin()