Lines Matching refs:hres
288 HRESULT hres;
295 hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**)&psl);
296 if (SUCCEEDED(hres))
301 hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf);
303 if (SUCCEEDED(hres))
310 hres = ppf->Load(wsz, STGM_READ);
311 if (SUCCEEDED(hres))
340 HRESULT hres;
346 hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**)&psl);
347 if (SUCCEEDED(hres))
352 hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf);
354 if (SUCCEEDED(hres))
361 hres = ppf->Load(wsz, STGM_READ);
362 if (SUCCEEDED(hres))
367 hres = psl->Resolve(nsnull, SLR_NO_UI );
368 if (SUCCEEDED(hres))
374 hres = psl->GetPath( szGotPath, MAX_PATH, &wfd, SLGP_UNCPRIORITY );
376 if (SUCCEEDED(hres))
386 hres = 0;
398 if (SUCCEEDED(hres))