Home COM GDI+ WebBrowser Data Access

ShellLinkObject  Object

 

CLSID_ShellLinkObject

{11219420-1768-11D1-95BE-00609797EA4F}

CLSID_WebViewFolderContents

{1820FED0-473E-11D0-A96C-00C04FD705A2}

IID_IShellLinkDual

{88A05C00-F000-11CE-8350-444553540000}

IID_IShellLinkDual2

{317EE249-F12E-11D2-B1E4-00C04F8EEB3E}

 

 

The ShellLinkObject object manages Shell links. It makes much of the functionality of the IShellLink interface available to scripting applications.

 

 

Methods in VTable order

IUnknown Methods

Description

QueryInterface

Returns pointers to supported interfaces.

AddRef

Increments reference count.

Release

Decrements reference count.

IDispatch Methods

Description

GetTypeInfoCount

Retrieves the number of type information interfaces that an object provides (either 0 or 1).

GetTypeInfo

Gets the type information for an object.

GetIDsOfNames

Maps a single member and an optional set of argument names to a corresponding set of integer DISPIDs.

Invoke

Provides access to properties and methods exposed by an object.

IShellLinkDual Methods and Properties

Description

Path

Contains the link's path.

Description

Contains the link's description.

WorkingDirectory

Contains the link's working directory.

Arguments

Contains a link's arguments.

Hotkey

Contains the link's hot-key code.

ShowCommand

Contains the initial show state of the link's command.

Resolve

Attempts to find the target of a Shell link, even if the target has been moved or renamed.

GetIconLocation

Retrieves the location of the link's icon.

SetIconLocation

Sets the location of the link's icon.

Save

Saves all changes to the link.

IShellLinkDua2 Methods and Properties

Description

Target

Contains the link object's target.

 

Path

 

FUNCTION IShellLinkDual_get_Path ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[7] USING IShellLinkDual_get_Path (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION

 

FUNCTION IShellLinkDual_put_Path ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  pbs = UCODE$(pbs)
  CALL DWORD @@pthis[8] USING IShellLinkDual_put_Path (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Description

 

FUNCTION IShellLinkDual_get_Description ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[9] USING IShellLinkDual_get_Description (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION

 

FUNCTION IShellLinkDual_put_Description ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  pbs = UCODE$(pbs)
  CALL DWORD @@pthis[10] USING IShellLinkDual_put_Description (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

WorkingDirectory

 

FUNCTION IShellLinkDual_get_WorkingDirectory ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[11] USING IShellLinkDual_get_WorkingDirectory (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION

 

FUNCTION IShellLinkDual_put_WorkingDirectory ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  pbs = UCODE$(pbs)
  CALL DWORD @@pthis[12] USING IShellLinkDual_put_WorkingDirectory (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Arguments

 

FUNCTION IShellLinkDual_get_Arguments ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[13] USING IShellLinkDual_get_Arguments (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION

 

FUNCTION IShellLinkDual_put_Arguments ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pbs AS STRING _
  ) AS LONG

  LOCAL HRESULT AS LONG
  pbs = UCODE$(pbs)
  CALL DWORD @@pthis[14] USING IShellLinkDual_put_Arguments (pthis, pbs) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

Hotkey

 

FUNCTION IShellLinkDual_get_Hotkey ( _
  BYVAL pthis AS DWORD PTR _
, BYREF piHK AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[15] USING IShellLinkDual_get_Hotkey (pthis, piHK) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

FUNCTION IShellLinkDual_put_Hotkey ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL piHK AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[16] USING IShellLinkDual_put_Hotkey (pthis, piHK) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

ShowCommand

 

FUNCTION IShellLinkDual_get_ShowCommand ( _
  BYVAL pthis AS DWORD PTR _
, BYREF piShowCommand AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[17] USING IShellLinkDual_get_ShowCommand (pthis, piShowCommand) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

FUNCTION IShellLinkDual_put_ShowCommand ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL piShowCommand AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[18] USING IShellLinkDual_put_ShowCommand (pthis, piShowCommand) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Resolve

 

FUNCTION IShellLinkDual_Resolve ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL fFlags AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[19] USING IShellLinkDual_Resolve (pthis, fFlags) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION

 

 

GetIconLocation

 

FUNCTION IShellLinkDual_GetIconLocation ( _
  BYVAL pthis AS DWORD PTR _
, BYREF pbs AS STRING _
, BYREF piIcon AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[20] USING IShellLinkDual_GetIconLocation (pthis, pbs, piIcon) TO HRESULT
  FUNCTION = HRESULT
  pbs = ACODE$(pbs)

END FUNCTION
 

 

SetIconLocation

 

FUNCTION IShellLinkDual_SetIconLocation ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL pbstrbs AS STRING _
, BYVAL iIcon AS LONG _
  ) AS LONG

  LOCAL HRESULT AS LONG
  pbstrbs = UCODE$(pbstrbs)
  CALL DWORD @@pthis[21] USING IShellLinkDual_SetIconLocation (pthis, pbstrbs, iIcon) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Save

 

FUNCTION IShellLinkDual_Save ( _
  BYVAL pthis AS DWORD PTR _
, BYVAL vWhere AS VARIANT _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[22] USING IShellLinkDual_Save (pthis, vWhere) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Target

 

FUNCTION IShellLinkDual2_get_Target ( _
  BYVAL pthis AS DWORD PTR _
, BYREF ppfi AS DWORD _
  ) AS LONG

  LOCAL HRESULT AS LONG
  CALL DWORD @@pthis[23] USING IShellLinkDual2_get_Target (pthis, ppfi) TO HRESULT
  FUNCTION = HRESULT

END FUNCTION
 

 

Page last updated on Wednesday, 15 February 2006 23:06:52 +0100