Export (0) Print
Expand All

HlinkNavigateToStringReference Function

Deprecated. Creates a hyperlink site from strings that represent the hyperlink target, the location in the target, and a friendly name; and then navigates to that site.


HRESULT HlinkNavigateToStringReference(
    LPCWSTR pwzTarget,
    LPCWSTR pwzLocation,
    IHlinkSite *pihlsite,
    DWORD dwSiteData,
    IHlinkFrame *pihlframe,
    DWORD grfHLNF,
    LPBC pibc,
    IBindStatusCallback *pibsc,
    IHlinkBrowseContext *pihlbc


[in] The address of the string that helps identify the hyperlink target. This string is resolved into a moniker for underlying binding operations through MkParseDisplayNameEx. This must not be NULL.
[in] The address of the location in the hyperlink target of the new hyperlink object.
[in] The address of the IHlinkSite interface on the site object for the new hyperlink object. This is optional, in which case pwzTarget must be an absolute reference.
[in] The additional site data for the new hyperlink object.
[in] The address of the IHlinkFrame interface for the hyperlink frame object of the hyperlink container object. This can be NULL, if the hyperlink container does not have a hyperlink frame.
[in] A value taken from the HLNF enumeration.
[in] The address of the IBindCtx interface on the bind context object to use for any moniker binding performed during the navigation. This must not be NULL.
[in] The address of the IBindStatusCallback interface on the bind-status-callback object to use for any asynchronous moniker binding performed during the navigation. If this is NULL, the caller does not receive progress notification, cancellation, pausing, or low-level binding information.
[in] A IHlinkBrowseContext interface pointer to the browse context object to use for this navigation. The browse context includes history information, where this navigation is logged if grfHLNF is not set to HLNF_CREATENOHISTORY.

Return Value

Returns S_OK if successful.


This helper function is identical to calling the following.

// create hyperlink site, IBindStatusCallback,
// gather bind context, and browse context 
HlinkCreateFromString(pwzTarget, pwzLocation,
    pwzFriendlyName, &hlSite, dwSiteData, NULL,
    IID_IHlink, (void**)&phl);
HlinkNavigate(pihl, pihlframe, grfHLNF, pbc, pibsc, pihlbc);

Function Information

Stock Implementation Hlink.dll
Custom Implementation No
Header Hlink.h
Import library Hlink.lib
Minimum availability Internet Explorer 3.0
Minimum operating systems Windows NT 4.0, Windows 95

See Also

Community Additions

© 2014 Microsoft