Partager via


GetMoniker method

[IHlinkTarget::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.

 

Returns a moniker to the hyperlink target object.

Syntax

HRESULT retVal = object.GetMoniker(pwzLocation, dwAssign, ppimkLocation);

Parameters

  • pwzLocation [in]
    Type: LPCWSTR

    The address of a string that specifies the hyperlink destination in the target.

  • dwAssign [in]
    Type: DWORD

    An unsigned long integer value from the OLEGETMONIKER enumeration. 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.

  • ppimkLocation [out]
    Type: IMoniker

    Address of a pointer to an IMoniker interface.

See also

Reference

HlinkSimpleNavigateToMoniker

IHlink::GetMonikerReference

IHlinkSite::GetMoniker