Lines Matching refs:hr
48 HRESULT hr; in call_IWbemServices_ExecQuery() local
53 hr = IWbemServices_ExecQuery(pSvc, bsQueryLanguage, bsQuery, lFlags, in call_IWbemServices_ExecQuery()
59 return hr; in call_IWbemServices_ExecQuery()
68 HRESULT hr; in call_IWbemServices_ExecNotificationQueryAsync() local
73 hr = IWbemServices_ExecNotificationQueryAsync(pSvc, bsQueryLanguage, in call_IWbemServices_ExecNotificationQueryAsync()
80 return hr; in call_IWbemServices_ExecNotificationQueryAsync()
90 HRESULT hr; in call_IWbemLocator_ConnectServer() local
98 hr = IWbemLocator_ConnectServer(pLoc, bsNetworkResource, bsUser, in call_IWbemLocator_ConnectServer()
108 return hr; in call_IWbemLocator_ConnectServer()
244 HRESULT hr; in ndis_events_media_specific() local
253 hr = IWbemClassObject_Get(pObj, L"NdisStatusMediaSpecificIndication", in ndis_events_media_specific()
255 if (FAILED(hr)) { in ndis_events_media_specific()
319 HRESULT hr; in ndis_events_indicate() local
322 hr = IWbemClassObject_Get(pObj, L"__CLASS", 0, &vtClass, NULL, in ndis_events_indicate()
324 if (FAILED(hr)) { in ndis_events_indicate()
331 hr = IWbemClassObject_Get(pObj, L"InstanceName", 0, &vt, NULL, in ndis_events_indicate()
333 if (FAILED(hr)) { in ndis_events_indicate()
398 HRESULT hr; in notification_query() local
404 hr = call_IWbemServices_ExecNotificationQueryAsync( in notification_query()
406 if (FAILED(hr)) { in notification_query()
409 class_name, (int) hr); in notification_query()
487 HRESULT hr; in ndis_events_get_adapter() local
506 hr = call_IWbemLocator_ConnectServer( in ndis_events_get_adapter()
508 if (FAILED(hr)) { in ndis_events_get_adapter()
510 "server (ROOT\\CIMV2) - error 0x%x", (int) hr); in ndis_events_get_adapter()
520 hr = call_IWbemServices_ExecQuery( in ndis_events_get_adapter()
524 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
527 "0x%x", (int) hr); in ndis_events_get_adapter()
533 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1, in ndis_events_get_adapter()
535 if (!SUCCEEDED(hr) || uReturned == 0) { in ndis_events_get_adapter()
538 "0x%x", (int) hr); in ndis_events_get_adapter()
546 hr = IWbemClassObject_Get(pObj, L"Index", 0, &vt, NULL, NULL); in ndis_events_get_adapter()
547 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
550 (int) hr); in ndis_events_get_adapter()
563 hr = call_IWbemServices_ExecQuery( in ndis_events_get_adapter()
567 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
569 "from Win32_NetworkAdapter: 0x%x", (int) hr); in ndis_events_get_adapter()
575 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1, in ndis_events_get_adapter()
577 if (!SUCCEEDED(hr) || uReturned == 0) { in ndis_events_get_adapter()
579 "from Win32_NetworkAdapter: 0x%x", (int) hr); in ndis_events_get_adapter()
586 hr = IWbemClassObject_Get(pObj, L"Name", 0, &vt, NULL, NULL); in ndis_events_get_adapter()
587 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
589 "Win32_NetworkAdapter: 0x%x", (int) hr); in ndis_events_get_adapter()
607 hr = IWbemClassObject_Get(pObj, L"PNPDeviceID", 0, &vt, NULL, NULL); in ndis_events_get_adapter()
608 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
610 "from Win32_NetworkAdapter: 0x%x", (int) hr); in ndis_events_get_adapter()
647 hr = call_IWbemServices_ExecQuery( in ndis_events_get_adapter()
651 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
653 "Name from Win32_PnPEntity: 0x%x", (int) hr); in ndis_events_get_adapter()
661 hr = IEnumWbemClassObject_Next(pEnumerator, WBEM_INFINITE, 1, in ndis_events_get_adapter()
663 if (!SUCCEEDED(hr) || uReturned == 0) { in ndis_events_get_adapter()
665 "from Win32_PnPEntity: 0x%x", (int) hr); in ndis_events_get_adapter()
674 hr = IWbemClassObject_Get(pObj, L"Name", 0, &vt, NULL, NULL); in ndis_events_get_adapter()
675 if (!SUCCEEDED(hr)) { in ndis_events_get_adapter()
677 "Win32_PnPEntity: 0x%x", (int) hr); in ndis_events_get_adapter()
706 HRESULT hr; in ndis_events_init() local
722 hr = CoInitializeEx(0, COINIT_MULTITHREADED); in ndis_events_init()
723 if (FAILED(hr)) { in ndis_events_init()
725 "returned 0x%x", (int) hr); in ndis_events_init()
737 hr = CoInitializeSecurity(NULL, -1, NULL, NULL, in ndis_events_init()
741 if (FAILED(hr)) { in ndis_events_init()
743 "- returned 0x%x", (int) hr); in ndis_events_init()
749 hr = CoCreateInstance(&CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, in ndis_events_init()
752 if (FAILED(hr)) { in ndis_events_init()
754 "0x%x", (int) hr); in ndis_events_init()
768 hr = call_IWbemLocator_ConnectServer( in ndis_events_init()
771 if (FAILED(hr)) { in ndis_events_init()
773 "0x%x", (int) hr); in ndis_events_init()