Share via


SetMonikerReference method

[IHlink::SetMonikerReference 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 moniker reference of the target.

Syntax

HRESULT retVal = object.SetMonikerReference(grfHLSETF, pimkTarget, pwzLocation);

Parameters

  • grfHLSETF [in]
    Type: DWORD

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

  • pimkTarget [in]
    Type: IMoniker

    The address of an IMoniker interface on the hyperlink target.

  • 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.