|
|
|
IShellLink Interface |
|
CLSID_ShellLink |
{00021401-0000-0000-C000-000000000046} |
|
IID_IShellLink |
{000214EE-0000-0000-C000-000000000046} |
|
The IShellLink interface allows Shell links to be created, modified, and resolved.
Note 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.
|
|
Methods in VTable order |
|
|
IUnknown Methods |
Description |
|
QueryInterface |
Returns pointers to supported interfaces. |
|
AddRef |
Increments reference count. |
|
Release |
Decrements reference count. |
|
IShellLink Methods |
Description |
|
GetPath |
Retrieves the path and file name of a Shell link object. |
|
GetIDList |
Retrieves the list of item identifiers for a Shell link object. |
|
SetIDList |
Sets the pointer to an item identifier list (PIDL) for a Shell link object. |
|
GetDescription |
Retrieves the description string for a Shell link object. |
|
SetDescription |
Sets the description for a Shell link object. The description can be any application-defined string. |
|
GetWorkingDirectory |
Retrieves the name of the working directory for a Shell link object. |
|
SetWorkingDirectory |
Sets the name of the working directory for a Shell link object. |
|
GetArguments |
Retrieves the command-line arguments associated with a Shell link object. |
|
SetArguments |
Sets the command-line arguments for a Shell link object. |
|
GetHotKey |
Retrieves the hot key for a Shell link object. |
|
SetHotKey |
Sets a hot key for a Shell link object. |
|
GetShowCmd |
Retrieves the show command for a Shell link object. |
|
SetShowCmd |
Sets the show command for a Shell link object. The show command sets the initial show state of the window. |
|
GetIconLocation |
Retrieves the location (path and index) of the icon for a Shell link object. |
|
SetIconLocation |
Sets the location (path and index) of the icon for a Shell link object. |
|
SetRelativePath |
Sets the relative path to the Shell link object. |
|
Resolve |
Attempts to find the target of a Shell link, even if it has been moved or renamed. |
|
SetPath |
Sets the path and file name of a Shell link object. |
|
SLR_FLAGS enumeration |
|
Defines flags used when calling IShellLink::Resolve
%SLR_NO_UI = &H1
|
|
SLGP_FLAGS enumeration |
|
Defines flags used when calling IShellLink::GetPath
%SLGP_SHORTPATH = &H1
|
|
WIN32_FIND_DATAW |
|
TYPE WIN32_FIND_DATAW
|
|
GetPath |
|
FUNCTION
IShellLink_GetPath ( _
|
|
GetIDList |
|
FUNCTION
IShellLink_GetIDList ( _
|
|
SetIDList |
|
FUNCTION
IShellLink_SetIDList ( _
|
|
GetDescription |
|
FUNCTION
IShellLink_GetDescription ( _
|
|
SetDescription |
|
FUNCTION
IShellLink_SetDescription ( _
|
|
GetWorkingDirectory |
|
FUNCTION
IShellLink_GetWorkingDirectory ( _
|
|
SetWorkingDirectory |
|
FUNCTION
IShellLink_SetWorkingDirectory ( _
|
|
GetArguments |
|
FUNCTION
IShellLink_GetArguments ( _
|
|
SetArguments |
|
FUNCTION
IShellLink_SetArguments ( _
|
|
GetHotKey |
|
FUNCTION
IShellLink_GetHotKey ( _
|
|
SetHotKey |
|
FUNCTION
IShellLink_SetHotKey ( _
|
|
GetShowCmd |
|
FUNCTION
IShellLink_GetShowCmd ( _
|
|
SetShowCmd |
|
FUNCTION
IShellLink_SetShowCmd ( _
|
|
GetIconLocation |
|
FUNCTION
IShellLink_GetIconLocation ( _
|
|
SetIconLocation |
|
FUNCTION
IShellLink_SetIconLocation ( _
|
|
SetRelativePath |
|
FUNCTION
IShellLink_SetRelativePath ( _
|
|
Resolve |
|
FUNCTION
IShellLink_Resolve ( _
|
|
SetPath |
|
FUNCTION
IShellLink_SetPath ( _
|
|
IID_IshellLinkW |
{000214F9-0000-0000-C000-000000000046} |
|
GetPath |
|
FUNCTION Proto_IShellLinkW_GetPath ( _
FUNCTION
IShellLinkW_GetPath ( _
FUNCTION = HRESULT
|
|
GetIDList |
|
FUNCTION
IShellLinkW_GetIDList ( _
|
|
SetIDList |
|
FUNCTION
IShellLinkW_SetIDList ( _
|
|
GetDescription |
|
FUNCTION Proto_IShellLinkW_GetDescription ( _
FUNCTION
IShellLinkW_GetDescription ( _
FUNCTION = HRESULT
|
|
SetDescription |
|
FUNCTION
IShellLinkW_SetDescription ( _
strName = UCODE$(strName) &
$NUL
|
|
GetWorkingDirectory |
|
FUNCTION Proto_IShellLinkW_GetWorkingDirectory ( _
FUNCTION
IShellLinkW_GetWorkingDirectory ( _ strDir =
"" FUNCTION = HRESULT
|
|
SetWorkingDirectory |
|
FUNCTION
IShellLinkW_SetWorkingDirectory ( _
strDir = UCODE$(strDir) &
$NUL
|
|
GetArguments |
|
FUNCTION Proto_IShellLinkW_GetArguments ( _
FUNCTION
IShellLinkW_GetArguments ( _
LOCAL HRESULT AS LONG
FUNCTION = HRESULT
|
|
SetArguments |
|
FUNCTION
IShellLinkW_SetArguments ( _
pszArgs = UCODE$(pszArgs) &
$NUL
|
|
GetHotKey |
|
FUNCTION
IShellLinkW_GetHotKey ( _
|
|
SetHotKey |
|
FUNCTION
IShellLinkW_SetHotKey ( _
|
|
GetShowCmd |
|
FUNCTION
IShellLinkW_GetShowCmd ( _
|
|
SetShowCmd |
|
FUNCTION
IShellLinkW_SetShowCmd ( _
|
|
GetIconLocation |
|
FUNCTION Proto_IShellLinkW_GetIconLocation ( _
FUNCTION
IShellLinkW_GetIconLocation ( _
LOCAL bstrLen AS
LONG
FUNCTION = HRESULT
|
|
SetIconLocation |
|
FUNCTION
IShellLinkW_SetIconLocation ( _
pszIconPath = UCODE$(pszIconPath) &
$NUL
|
|
SetRelativePath |
|
FUNCTION
IShellLinkW_SetRelativePath ( _
pszPathRel = UCODE$(pszPathRel) &
$NUL
|
|
Resolve |
|
FUNCTION
IShellLinkW_Resolve ( _
|
|
SetPath |
|
FUNCTION
IShellLinkW_SetPath ( _
pszFile = UCODE$(pszFile) &
$NUL
|
Page last updated on Sunday, 26 March 2006 10:54:33 +0100