Lines Matching refs:hr

124 	HRESULT hr;  in dotnet_init()  local
136 hr = CoCreateInstance(&CLSID_CorRuntimeHost, NULL, CLSCTX_ALL, in dotnet_init()
139 if (FAILED(hr)) in dotnet_init()
144 hr = ICorRuntimeHost_Start(stuff->dotnet_host); in dotnet_init()
145 if (FAILED(hr)) in dotnet_init()
149 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in dotnet_init()
150 if (FAILED(hr)) in dotnet_init()
154 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in dotnet_init()
155 if (FAILED(hr)) in dotnet_init()
177 return hr; in dotnet_init()
193 HRESULT hr; in PHP_FUNCTION() local
203 hr = dotnet_init(&where); in PHP_FUNCTION()
204 if (FAILED(hr)) { in PHP_FUNCTION()
206 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
209 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
216 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_FUNCTION()
217 if (FAILED(hr)) { in PHP_FUNCTION()
219 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
222 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
228 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_FUNCTION()
229 if (FAILED(hr)) { in PHP_FUNCTION()
231 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
234 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
262hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_FUNCTION()
268 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
273 hr = IUnknown_QueryInterface(unk, &IID_IObjectHandle, &handle); in PHP_FUNCTION()
275 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
277 hr = IObjectHandle_Unwrap(handle, &unwrapped); in PHP_FUNCTION()
278 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
282 hr = IUnknown_QueryInterface(V_UNKNOWN(&unwrapped), &IID_IDispatch, &V_DISPATCH(&obj->v)); in PHP_FUNCTION()
284 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
303 hr = E_INVALIDARG; in PHP_FUNCTION()
313 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
314 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
316 php_com_throw_exception(hr, buf); in PHP_FUNCTION()