GetStringReference method

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.

 

Gets the name portion and the location portion of the target.

Syntax

HRESULT retVal = object.GetStringReference(dwWhichRef, ppwzTarget, ppwzLocation);

Parameters

  • dwWhichRef [in]
    Type: DWORD

    An HLINKGETREF value that specifies whether to retrieve the absolute reference or the relative reference to the hyperlink target.

  • ppwzTarget [out]
    Type: LPWSTR

    The address of a string that contains the hyperlink target of the hyperlink reference. If this is NULL, the caller does not receive the target string of the hyperlink reference.

  • ppwzLocation [out]
    Type: LPWSTR

    The address of a string that contains the location portion of the hyperlink reference. If this is NULL, the caller does not receive the location portion of the hyperlink reference.

See also

Reference

IHlink::GetMonikerReference

HlinkNavigateToStringReference

HlinkSimpleNavigateToString