Partager via


CJumpList::AddDestination

Adds destination to the list.

BOOL AddDestination(
   LPCTSTR lpcszCategoryName,
   LPCTSTR strDestinationPath
);
BOOL AddDestination(
   LPCTSTR strCategoryName,
   IShellItem* pShellItem
);
BOOL AddDestination(
   LPCTSTR strCategoryName,
   IShellLink* pShellLink
);

Parameters

  • lpcszCategoryName
    Specifies a category name. If the specified category does not exist, it will be created.

  • strDestinationPath
    Specifies a path to destination file.

  • strCategoryName
    Specifies a category name. If the specified category does not exist, it will be created.

  • pShellItem
    Specifies a Shell Item representing the destination being added.

  • pShellLink
    Specifies a Shell Link representing the destination being added.

Remarks

The instance of CJumpList internally accumulates added destinations and then commits them in CommitList.

Requirements

Header: afxadv.h

See Also

Reference

CJumpList Class