HlinkResolveShortcutToString function

[HlinkResolveShortcutToString may be altered or unavailable in subsequent versions of the operating system or product.]

Note  The Microsoft ActiveX Hyperlink API is deprecated in Windows Internet Explorer 8 and later, and ActiveX technology as a whole is unsupported in the Microsoft Edge browser in favor of standards-based web APIs. For more information, see Saying goodbye to ActiveX, VBScript, attachEvent... and Get ready for plug-in free browsing.

 

Resolves a hyperlink into strings for location and target.

Syntax

HRESULT HlinkResolveShortcutToString(
            LPCWSTR pwzShortcutFileName,
  _Out_     LPWSTR  *ppwzTarget,
  _Out_opt_ LPWSTR  *ppwzLocation
);

Parameters

  • pwzShortcutFileName
    The shortcut file name.

  • ppwzTarget [out]
    The pointer to the address of the string to help identify the hyperlink target. This string is resolved into a moniker by using MkParseDisplayNameEx.

  • ppwzLocation [out, optional]
    The pointer to the address of the string that represent the location in the hyperlink target for the new hyperlink.

Return value

If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Header

HLink.h

Library

HLink.Idl

DLL

Hlink.dll