GetFirstName

Get the first name of the source.
This method resets the internal iterator and calls GetNextName
To continue enumation call GetNextName

 

HRESULT GetFirstName([out] BSTR*
pName, [out,retval] long* pLangId);

Parameters

name

[out] pointer to a BSTR variable to store the first name associated with this source.

pLangId

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

Return Values

S_OK

name contains the first name of this source.

S_FALSE

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

E_POINTER

name was no valid pointer

E_ACCESSDENIED

The object is locked due to an asynchronous operation