Lines Matching refs:ret

48 	LONG ret;  in lc_isInstalled()  local
49 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ, &hKeySoftware); in lc_isInstalled()
50 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
51 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ, &hKeySoftware); in lc_isInstalled()
52 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
56 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ, &hMozillaPlugins); in lc_isInstalled()
57 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
59 if( ret == ERROR_FILE_NOT_FOUND) in lc_isInstalled()
64ret = RegOpenKeyEx(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0", 0, KEY_READ, &hStarOff… in lc_isInstalled()
65 if(ret != ERROR_SUCCESS){ in lc_isInstalled()
68 if( ret == ERROR_FILE_NOT_FOUND) in lc_isInstalled()
75 ret = -1; in lc_isInstalled()
78 ret = 0; in lc_isInstalled()
83 if(ret == 0){ in lc_isInstalled()
86 ret = RegQueryValueEx (hStarOffice, "Path", NULL, &dType , (LPBYTE) sPluginPath, &dSize); in lc_isInstalled()
87 if(ret == ERROR_SUCCESS){ in lc_isInstalled()
89 ret = 0; in lc_isInstalled()
91 ret = 1; in lc_isInstalled()
94 ret = -1; in lc_isInstalled()
97 ret = -1; in lc_isInstalled()
101 return ret; in lc_isInstalled()
110 LONG ret; in lc_uninstallPlugin() local
111 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_uninstallPlugin()
112 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
113 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_uninstallPlugin()
114 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
118 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ|KEY_WRITE, &hMozillaPlugins); in lc_uninstallPlugin()
119 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
121 if( ret == ERROR_FILE_NOT_FOUND) in lc_uninstallPlugin()
127ret = RegOpenKeyEx(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0", 0, KEY_READ|KEY_WRITE,… in lc_uninstallPlugin()
128 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
131 if( ret == ERROR_FILE_NOT_FOUND) in lc_uninstallPlugin()
137 ret = SHDeleteKey(hMozillaPlugins, "@sun.com/npsopluginmi;version=1.0"); in lc_uninstallPlugin()
138 if(ret != ERROR_SUCCESS){ in lc_uninstallPlugin()
139 ret = -1; in lc_uninstallPlugin()
144 return ret; in lc_uninstallPlugin()
156 LONG ret; in lc_installPlugin() local
157 ret = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_installPlugin()
158 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
159 ret = RegOpenKeyEx(HKEY_CURRENT_USER, "SOFTWARE", 0, KEY_READ|KEY_WRITE, &hKeySoftware); in lc_installPlugin()
160 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
164 ret = RegOpenKeyEx(hKeySoftware, "MozillaPlugins", 0, KEY_READ|KEY_WRITE, &hMozillaPlugins); in lc_installPlugin()
165 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
177 ret = RegCreateKeyEx(hMozillaPlugins, in lc_installPlugin()
186 if(ret != ERROR_SUCCESS){ in lc_installPlugin()
197 ret = -1; in lc_installPlugin()
200 ret = 0; in lc_installPlugin()
205 if(ret == 0){ in lc_installPlugin()
206 ret = RegSetValueEx( hStarOffice, "Path", 0, REG_SZ, (LPBYTE) sSoPath, strlen(sSoPath) + 1); in lc_installPlugin()
207 if(ret == ERROR_SUCCESS) in lc_installPlugin()
208 ret = 0; in lc_installPlugin()
210 ret = -1; in lc_installPlugin()
213 ret = -1; in lc_installPlugin()
221 return ret; in lc_installPlugin()