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 Version | shell32.dll version 4.0 or later |
|---|
| Custom Implementation | No |
|---|
| Inherits from | IUnknown |
|---|
| Header and IDL files | shobjidl.h, shobjidl.idl |
|---|
| Minimum operating systems |
Windows NT 4.0, Windows 95 |
|---|