Home | History | Annotate | Download | only in base

Lines Matching defs:hr

63   HRESULT hr = CoCreateInstance(__uuidof(NetFwMgr),
67 if (SUCCEEDED(hr) && (mgr_ != NULL))
68 hr = mgr_->get_LocalPolicy(&policy_);
69 if (SUCCEEDED(hr) && (policy_ != NULL))
70 hr = policy_->get_CurrentProfile(&profile_);
73 *result = hr;
74 return SUCCEEDED(hr) && (profile_ != NULL);
108 HRESULT hr = profile_->get_AuthorizedApplications(&apps);
109 if (SUCCEEDED(hr) && (apps != NULL)) {
111 hr = apps->Item(bfilename, &app);
112 if (SUCCEEDED(hr) && (app != NULL)) {
114 hr = app->get_Enabled(&fwEnabled);
117 if (SUCCEEDED(hr)) {
121 } else if (hr == HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND)) {
146 HRESULT hr = profile_->get_AuthorizedApplications(&apps);
147 if (SUCCEEDED(hr) && (apps != NULL)) {
149 hr = CoCreateInstance(__uuidof(NetFwAuthorizedApplication),
153 if (SUCCEEDED(hr) && (app != NULL)) {
155 hr = app->put_ProcessImageFileName(bstr);
157 if (SUCCEEDED(hr))
158 hr = app->put_Name(bstr);
159 if (SUCCEEDED(hr))
160 hr = app->put_Enabled(authorized ? VARIANT_TRUE : VARIANT_FALSE);
161 if (SUCCEEDED(hr))
162 hr = apps->Add(app);
168 *result = hr;
169 return SUCCEEDED(hr);