Export (0) Print
Expand All

IHlinkTarget::GetMoniker Method

Deprecated. Returns a moniker to the hyperlink target object.

Syntax


HRESULT GetMoniker(
    LPCWSTR pwzLocation,
    DWORD dwAssign,
    IMoniker *ppimkLocation
);

Parameters

pwzLocation
[in] The address of a string that specifies the hyperlink destination in the target.
dwAssign
[in] 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] 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.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft