Returns a moniker to the hyperlink target object.
Syntax
HRESULT GetMoniker( LPCWSTR pwzLocation, DWORD dwAssign, IMoniker *ppimkLocation );
Parameters
- pwzLocation
- [in] Address of a string that specifies the hyperlink destination within the target.
- dwAssign
- [in] Unsigned long integer value from the OLEGETMONIKER enumeration. This is typically either OLEGETMONIKER_ONLYIFTHERE, indicating the function should not force a moniker to be created if one does not already exist, or OLEGETMONIKER_FORCEASSIGN, indicating the function should create a moniker if one does not exist.
- ppimkLocation
- [out] Address of a pointer to an IMoniker interface.
Return Value
Returns S_OK if successful, or E_FAIL if a moniker does not exist for this hyperlink target and if OLEGETMONIKER_ONLYIFTHERE is specified for dwAssign.
Windows CE
Windows CE Use version 2.12 and later Minimum availability Internet Explorer 4.0
See Also
HlinkSimpleNavigateToMoniker, IHlink::GetMonikerReference, IHlinkSite::GetMoniker