Lines Matching refs:FAILED
34 if (FAILED(i_shell_link->CreateInstance(CLSID_ShellLink, NULL, in InitializeShortcutInterfaces()
36 FAILED(i_persist_file->QueryFrom(*i_shell_link)) || in InitializeShortcutInterfaces()
37 (shortcut && FAILED((*i_persist_file)->Load(shortcut, STGM_READWRITE)))) { in InitializeShortcutInterfaces()
93 FAILED(i_shell_link->SetPath(properties.target.value().c_str()))) { in CreateOrUpdateShortcutLink()
98 FAILED(i_shell_link->SetWorkingDirectory( in CreateOrUpdateShortcutLink()
104 if (FAILED(i_shell_link->SetArguments(properties.arguments.c_str()))) in CreateOrUpdateShortcutLink()
115 FAILED(i_shell_link->SetDescription(properties.description.c_str()))) { in CreateOrUpdateShortcutLink()
120 FAILED(i_shell_link->SetIconLocation(properties.icon.value().c_str(), in CreateOrUpdateShortcutLink()
132 if (FAILED(property_store.QueryFrom(i_shell_link)) || !property_store.get()) in CreateOrUpdateShortcutLink()
188 if (FAILED(i_shell_link.CreateInstance(CLSID_ShellLink, NULL, in ResolveShortcutProperties()
195 if (FAILED(persist.QueryFrom(i_shell_link))) in ResolveShortcutProperties()
199 if (FAILED(persist->Load(shortcut_path.value().c_str(), STGM_READ))) in ResolveShortcutProperties()
208 if (FAILED(i_shell_link->Resolve(0, SLR_NO_UI | SLR_NOSEARCH))) in ResolveShortcutProperties()
210 if (FAILED(i_shell_link->GetPath(temp, MAX_PATH, NULL, SLGP_UNCPRIORITY))) in ResolveShortcutProperties()
216 if (FAILED(i_shell_link->GetWorkingDirectory(temp, MAX_PATH))) in ResolveShortcutProperties()
222 if (FAILED(i_shell_link->GetArguments(temp, MAX_PATH))) in ResolveShortcutProperties()
229 if (FAILED(i_shell_link->GetDescription(temp, MAX_PATH))) in ResolveShortcutProperties()
236 if (FAILED(i_shell_link->GetIconLocation(temp, MAX_PATH, &temp_index))) in ResolveShortcutProperties()
245 if (FAILED(property_store.QueryFrom(i_shell_link))) in ResolveShortcutProperties()