417{
421
423 &IID_IShellLinkA, (
LPVOID*)&sl);
424 lok(
r ==
S_OK,
"no IID_IShellLinkA (0x%08x)\n",
r);
426 return;
427
428 if (
desc->description)
429 {
430 r = IShellLinkA_SetDescription(sl,
desc->description);
431 lok(
r ==
S_OK,
"SetDescription failed (0x%08x)\n",
r);
432 }
434 {
435 r = IShellLinkA_SetWorkingDirectory(sl,
desc->workdir);
436 lok(
r ==
S_OK,
"SetWorkingDirectory failed (0x%08x)\n",
r);
437 }
439 {
440 r = IShellLinkA_SetPath(sl,
desc->path);
442 }
444 {
445 r = IShellLinkA_SetIDList(sl,
desc->pidl);
446 lok(
r ==
S_OK,
"SetIDList failed (0x%08x)\n",
r);
447 }
449 {
450 r = IShellLinkA_SetArguments(sl,
desc->arguments);
451 lok(
r ==
S_OK,
"SetArguments failed (0x%08x)\n",
r);
452 }
454 {
455 r = IShellLinkA_SetShowCmd(sl,
desc->showcmd);
456 lok(
r ==
S_OK,
"SetShowCmd failed (0x%08x)\n",
r);
457 }
459 {
460 r = IShellLinkA_SetIconLocation(sl,
desc->icon,
desc->icon_id);
461 lok(
r ==
S_OK,
"SetIconLocation failed (0x%08x)\n",
r);
462 }
464 {
465 r = IShellLinkA_SetHotkey(sl,
desc->hotkey);
466 lok(
r ==
S_OK,
"SetHotkey failed (0x%08x)\n",
r);
467 }
468
470 lok(
r ==
S_OK,
"no IID_IPersistFile (0x%08x)\n",
r);
472 {
474
475 if (0)
476 {
477
478 IPersistFile_GetCurFile(pf,
NULL);
479 }
480
481
483 r = IPersistFile_GetCurFile(pf, &
str);
488
491 lok(
r ==
S_OK,
"save failed (0x%08x)\n",
r);
492
493
494 r = IPersistFile_GetCurFile(pf, &
str);
498 "Didn't expect NULL\n");
500 {
502
505
508 }
509 else
510 win_skip(
"GetCurFile fails on shell32 < 5.0\n");
511
512 IPersistFile_Release(pf);
513 }
514
515 IShellLinkA_Release(sl);
516}
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI SHGetMalloc(LPMALLOC *lpmal)
GLdouble GLdouble GLdouble r
static const WCHAR desc[]
#define todo_wine_if(is_todo)
static void *__cdecl * pmalloc(unsigned int)
const GUID IID_IPersistFile
static int winetest_strcmpW(const WCHAR *str1, const WCHAR *str2)