Lines Matching refs:hr

38   HRESULT hr = winrt_utils::CreateActivationFactory(
41 CheckHR(hr, "Failed to activate ISettingsPaneStatics");
44 hr = settings_pane_statics->GetForCurrentView(&settings_pane);
45 CheckHR(hr, "Failed to get ISettingsPane");
47 hr = settings_pane->add_CommandsRequested(
52 CheckHR(hr, "Failed to add CommandsRequested");
54 return hr;
62 HRESULT hr = winrt_utils::CreateActivationFactory(
65 CheckHR(hr, "Failed to activate ISettingsCommandFactory");
69 hr = args->get_Request(&settings_command_request);
70 CheckHR(hr, "Failed to get_Request");
73 hr = settings_command_request->get_ApplicationCommands(&application_commands);
74 CheckHR(hr, "Failed to get_ApplicationCommands");
77 hr = AppendNewSettingsCommand(
80 CheckHR(hr, "Failed to append new settings command");
82 hr = AppendNewSettingsCommand(
85 CheckHR(hr, "Failed to append new help command");
87 hr = AppendNewSettingsCommand(
90 CheckHR(hr, "Failed to append new about command");
92 return hr;
102 HRESULT hr = GetSettingsId(id, &settings_id);
103 CheckHR(hr, "Can't get settings id");
108 hr = settings_command_factory->CreateSettingsCommand(
114 CheckHR(hr, "Can't create settings command");
116 hr = settings_command_vector->Append(command.Get());
117 CheckHR(hr, "Failed to append settings command");
119 return hr;
124 HRESULT hr = GetSettingsId(kSettingsId, &settings_id);
125 CheckHR(hr, "Failed to get settings id");
128 hr = GetSettingsId(kHelpId, &help_id);
129 CheckHR(hr, "Failed to get settings id");
132 hr = GetSettingsId(kAboutId, &about_id);
133 CheckHR(hr, "Failed to get settings id");
136 hr = command->get_Id(&command_id);
137 CheckHR(hr, "Failed to get command id");
140 hr = winrt_utils::CompareProperties(
142 CheckHR(hr, "Failed to compare ids");
151 hr = winrt_utils::CompareProperties(command_id.Get(), help_id.Get(), &result);
152 CheckHR(hr, "Failed to compare ids");
158 hr = winrt_utils::CompareProperties(
160 CheckHR(hr, "Failed to compare ids");