IShellLinkA interface

Exposes methods that create, modify, and resolve Shell links.

Methods

The IShellLinkA interface has these methods.

Method Description
IShellLinkA::GetArguments Gets the command-line arguments associated with a Shell link object.
IShellLinkA::GetDescription Gets the description string for a Shell link object.
IShellLinkA::GetHotkey Gets the keyboard shortcut (hot key) for a Shell link object.
IShellLinkA::GetIconLocation Gets the location (path and index) of the icon for a Shell link object.
IShellLinkA::GetIDList Gets the list of item identifiers for the target of a Shell link object.
IShellLinkA::GetPath Gets the path and file name of the target of a Shell link object.
IShellLinkA::GetShowCmd Gets the show command for a Shell link object.
IShellLinkA::GetWorkingDirectory Gets the name of the working directory for a Shell link object.
IShellLinkA::Resolve Attempts to find the target of a Shell link, even if it has been moved or renamed.
IShellLinkA::SetArguments Sets the command-line arguments for a Shell link object.
IShellLinkA::SetDescription Sets the description for a Shell link object. The description can be any application-defined string.
IShellLinkA::SetHotkey Sets a keyboard shortcut (hot key) for a Shell link object.
IShellLinkA::SetIconLocation Sets the location (path and index) of the icon for a Shell link object.
IShellLinkA::SetIDList Sets the pointer to an item identifier list (PIDL) for a Shell link object.
IShellLinkA::SetPath Sets the path and file name for the target of a Shell link object.
IShellLinkA::SetRelativePath Sets the relative path to the Shell link object.
IShellLinkA::SetShowCmd Sets the show command for a Shell link object. The show command sets the initial show state of the window.
IShellLinkA::SetWorkingDirectory Sets the name of the working directory for a Shell link object.

Remarks

Note  This interface cannot be used to create a link to a URL.
 
The IShellLink interface has an ANSI version (IShellLinkA) and a Unicode version (IShellLinkW). The version that will be used depends on whether you compile for ANSI or Unicode.

Requirements

   
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h