Partager via


SetStringReference method

[IHlink::SetStringReference 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.

 

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

Syntax

HRESULT retVal = object.SetStringReference(grfHLSETF, pwzTarget, pwzLocation);

Parameters

  • grfHLSETF [in]
    Type: DWORD

    An HLINKSETF-defined value that indicates whether to set the hyperlink target, the location within the target, or both.

  • pwzTarget [in]
    Type: LPCWSTR

    A string that contains the target name for the hyperlink.

  • pwzLocation [in]
    Type: LPCWSTR

    The address of a string that indicates the location in the hyperlink target to which the browser navigated. This must not be NULL.