Contents Index Topic Contents | ||
Previous Topic: IHlinkSite Next Topic: IHlinkSite::OnNavigationComplete |
IHlinkSite::GetMoniker
HRESULT GetMoniker( DWORD dwSiteData, //Site data for the new hyperlink object DWORD dwAssign, //Whether or not to create a moniker if one not found DWORD dwWhich, //Which moniker to retrieve IMoniker * ppimk //Buffer to receive the requested moniker interface pointer );Returns the relative moniker of the hyperlink's container.
- Returns S_OK if the moniker of the hyperlink's site container was successfully supplied, or E_FAIL if a moniker does not exist for this hyperlink target and OLEGETMONIKER_ONLYIFTHERE was specified for dwAssign.
- dwSiteData
- [in] Used to identify the hyperlink to the hyperlink site. The hyperlink site initializes the hyperlink with this value as part of IHlink::SetHlinkSite.
- dwAssign
- [in] A 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 that the function should create a moniker if one does not exist.
- dwWhich
- [in] A value from the OLEWHICHMK enumeration. This is typically OLEWHICHMK_CONTAINER, indicating that the site should return the moniker of the hyperlink container.
- ppimk
- [out] Location to return the IMoniker interface.
See also IHlink::GetMonikerReference, IHlinkTarget::GetMoniker
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.