GetFirstLink

Get the first link from this object.
This method resets the internal iterator and calls GetNextLink
To continue enumation call GetNextLink

 

HRESULT GetFirstLink([out] BSTR*
name, [out,retval] long* pLangId);

Parameters

name

[out] pointer to a BSTR variable to store the first URL associated with this doclink.

pLangId

[out, retval] pointer to a long variable to store the lang Id of the returned URL.

Return Values

S_OK

name contains the first URL of this doclink.

S_FALSE

The doclink does not have any URL. *name is set to NULL.

E_POINTER

name was no valid pointer