Click to Rate and Give Feedback
MSDN
MSDN Library
User Interface
Windows Shell
Shell Reference
Shell Interfaces
IShellLink
IShellLink Interface

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

IShellLink Members

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

Interface Information

Minimum DLL Versionshell32.dll version 4.0 or later
Custom ImplementationNo
Inherits fromIUnknown
Header and IDL filesshobjidl.h, shobjidl.idl
Minimum operating systems Windows NT 4.0, Windows 95
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker