Lines Matching refs:hres
37 HRESULT hres; in IsVPCRunning() local
65 hres = CoInitializeEx(0, COINIT_MULTITHREADED); in IsVPCRunning()
66 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
71 …hres = CoInitializeSecurity(NULL, -1, NULL, NULL, RPC_C_AUTHN_LEVEL_DEFAULT, RPC_C_IMP_LEVEL_IMPE… in IsVPCRunning()
72 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
77 …hres = CoCreateInstance( CLSID_WbemLocator, 0, CLSCTX_INPROC_SERVER, IID_IWbemLocator, (LPVOID *) … in IsVPCRunning()
78 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
84 …hres = pLoc->ConnectServer( _bstr_t(L"ROOT\\CIMV2"), NULL, NULL, 0, WBEM_FLAG_CONNECT_USE_MAX_WAIT… in IsVPCRunning()
85 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
90 …hres = CoSetProxyBlanket( pSvc, RPC_C_AUTHN_WINNT, RPC_C_AUTHZ_NONE, NULL, RPC_C_AUTHN_LEVEL_CALL,… in IsVPCRunning()
91 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
96 …hres = pSvc->ExecQuery( bstr_t("WQL"), bstr_t("SELECT * from Win32_BaseBoard"), WBEM_FLAG_FORWARD_… in IsVPCRunning()
98 require_action( SUCCEEDED( hres ), exit, err = kUnknownErr ); in IsVPCRunning()
105 hres = pEnumerator->Next( WBEM_INFINITE, 1, &pInstance, &dwCount); in IsVPCRunning()
130 } while (hres == WBEM_S_NO_ERROR); in IsVPCRunning()