Lines Matching refs:hr

125 	HRESULT hr;  in dotnet_bind_runtime()  local
150 hr = CorBindToRuntime(oleversion, NULL, &CLSID_CorRuntimeHost, &IID_ICorRuntimeHost, ppv); in dotnet_bind_runtime()
155 return hr; in dotnet_bind_runtime()
160 HRESULT hr; in dotnet_init() local
172 hr = dotnet_bind_runtime((LPVOID*)&stuff->dotnet_host); in dotnet_init()
173 if (FAILED(hr)) in dotnet_init()
178 hr = ICorRuntimeHost_Start(stuff->dotnet_host); in dotnet_init()
179 if (FAILED(hr)) in dotnet_init()
183 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in dotnet_init()
184 if (FAILED(hr)) in dotnet_init()
188 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in dotnet_init()
189 if (FAILED(hr)) in dotnet_init()
211 return hr; in dotnet_init()
227 HRESULT hr; in PHP_METHOD() local
244 hr = dotnet_init(&where); in PHP_METHOD()
245 if (FAILED(hr)) { in PHP_METHOD()
247 char *err = php_win32_error_to_msg(hr); in PHP_METHOD()
248 snprintf(buf, sizeof(buf), "Failed to init .Net runtime [%s] [0x%08lx] %s", where, hr, err); in PHP_METHOD()
250 php_com_throw_exception(hr, buf); in PHP_METHOD()
257 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_METHOD()
258 if (FAILED(hr)) { in PHP_METHOD()
260 char *err = php_win32_error_to_msg(hr); in PHP_METHOD()
261 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] [0x%08lx] %s", where, hr, err); in PHP_METHOD()
263 php_com_throw_exception(hr, buf); in PHP_METHOD()
269 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_METHOD()
270 if (FAILED(hr)) { in PHP_METHOD()
272 char *err = php_win32_error_to_msg(hr); in PHP_METHOD()
273 snprintf(buf, sizeof(buf), "Failed to re-init .Net domain [%s] [0x%08lx] %s", where, hr, err); in PHP_METHOD()
275 php_com_throw_exception(hr, buf); in PHP_METHOD()
295hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_METHOD()
301 if (SUCCEEDED(hr)) { in PHP_METHOD()
306 hr = IUnknown_QueryInterface(unk, &IID_IObjectHandle, &handle); in PHP_METHOD()
308 if (SUCCEEDED(hr)) { in PHP_METHOD()
310 hr = IObjectHandle_Unwrap(handle, &unwrapped); in PHP_METHOD()
311 if (SUCCEEDED(hr)) { in PHP_METHOD()
315 hr = IUnknown_QueryInterface(V_UNKNOWN(&unwrapped), &IID_IDispatch, &V_DISPATCH(&obj->v)); in PHP_METHOD()
317 if (SUCCEEDED(hr)) { in PHP_METHOD()
336 hr = E_INVALIDARG; in PHP_METHOD()
346 char *err = php_win32_error_to_msg(hr); in PHP_METHOD()
347 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08lx] %s", where, hr, err); in PHP_METHOD()
349 php_com_throw_exception(hr, buf); in PHP_METHOD()