Lines Matching refs:hres
343 HRESULT hres;
350 hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**)&psl);
351 if (SUCCEEDED(hres))
356 hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf);
358 if (SUCCEEDED(hres))
365 hres = ppf->Load(wsz, STGM_READ);
366 if (SUCCEEDED(hres))
399 HRESULT hres;
405 hres = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**)&psl);
406 if (SUCCEEDED(hres))
411 hres = psl->QueryInterface(IID_IPersistFile, (void**)&ppf);
413 if (SUCCEEDED(hres))
420 hres = ppf->Load(wsz, STGM_READ);
421 if (SUCCEEDED(hres))
426 hres = psl->Resolve(nsnull, SLR_NO_UI );
427 if (SUCCEEDED(hres))
433 hres = psl->GetPath( szGotPath, MAX_PATH, &wfd, SLGP_UNCPRIORITY );
435 if (SUCCEEDED(hres))
445 hres = 0;
457 if (SUCCEEDED(hres))