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()
210 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
217 hr = ICorRuntimeHost_GetDefaultDomain(stuff->dotnet_host, &unk); in PHP_FUNCTION()
218 if (FAILED(hr)) { in PHP_FUNCTION()
220 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
224 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
230 hr = IUnknown_QueryInterface(unk, &IID_mscorlib_System_AppDomain, (LPVOID*)&stuff->dotnet_domain); in PHP_FUNCTION()
231 if (FAILED(hr)) { in PHP_FUNCTION()
233 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
237 php_com_throw_exception(hr, buf); in PHP_FUNCTION()
265hr = stuff->dotnet_domain->lpVtbl->CreateInstance(stuff->dotnet_domain, oleassembly_sys, oletype_s… in PHP_FUNCTION()
271 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
276 hr = IUnknown_QueryInterface(unk, &IID_IObjectHandle, &handle); in PHP_FUNCTION()
278 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
280 hr = IObjectHandle_Unwrap(handle, &unwrapped); in PHP_FUNCTION()
281 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
285 hr = IUnknown_QueryInterface(V_UNKNOWN(&unwrapped), &IID_IDispatch, &V_DISPATCH(&obj->v)); in PHP_FUNCTION()
287 if (SUCCEEDED(hr)) { in PHP_FUNCTION()
306 hr = E_INVALIDARG; in PHP_FUNCTION()
316 char *err = php_win32_error_to_msg(hr); in PHP_FUNCTION()
317 snprintf(buf, sizeof(buf), "Failed to instantiate .Net object [%s] [0x%08x] %s", where, hr, err); in PHP_FUNCTION()
321 php_com_throw_exception(hr, buf); in PHP_FUNCTION()