IHlink::SetMonikerReference

Sets the target moniker or location string values for a hyperlink object.

HRESULT SetMonikerReference(
  DWORD grfHLSETF,        //Specifies whether to set the hyperlink 
                          //target, the location within the target, or 
                          //both.
  IMoniker * pimkTarget,  //Moniker interface pointer of the 
                          //hyperlink target
  LPCWSTR pwzLocation     //Location within the hyperlink target of 
                          //new hyperlink
);
 

Parameters

grfHLSETF
[in] Specifies whether to set the hyperlink target, the location within the target, or both.
pimkTarget
[in, unique] Pointer to an IMoniker interface on the hyperlink target.
pwzLocation
[in, unique] A string identifying the location within the hyperlink target that was navigated to. Must not be NULL.

Return Values

S_OK
The moniker reference for the hyperlink was set.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in hlink.h.

See Also

HLINKSETF