GetMoniker method

[IHlinkSite::GetMoniker 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.

 

Gets the moniker to the hyperlink target.

Syntax

HRESULT retVal = object.GetMoniker(dwSiteData, dwAssign, dwWhich, ppimk);

Parameters

  • dwSiteData [in]
    Type: DWORD

    An unsigned long integer value that specifies the hyperlink to the hyperlink site. The hyperlink site initializes the hyperlink with this value as part of IHlink::SetHlinkSite.

  • dwAssign [in]
    Type: DWORD

    An unsigned long integer value that specifies one of the OLEGETMONIKER values. This is typically OLEGETMONIKER_ONLYIFTHERE, which indicates that the function should not force a moniker to be created, if one does not already exist; or OLEGETMONIKER_FORCEASSIGN, which indicates that the function should create a moniker, if one does not exist.

  • dwWhich [in]
    Type: DWORD

    An unsigned long integer value that specifies one of the OLEWHICHMK values. This is typically OLEWHICHMK_CONTAINER, which indicates that the site should return the moniker of the hyperlink container.

  • ppimk [out]
    Type: IMoniker

    A pointer to an IMoniker interface.

See also

Reference

IHlink::GetMonikerReference

IHlinkTarget::GetMoniker