Platform SDK: SMTP Server Events

IMailMsgRecipientsBase::Item

[This is preliminary documentation and subject to change.]

Get the name of a recipient.

HRESULT Item(
  [in] DWORD dwIndex,
  [in] DWORD dwWhichName,
  [in] DWORD cchLength,
  [out,size_is(cchLength)] LPSTR pszName
);
dwIndex
Specifies the zero-based index of the recipient.
cchLength
Specifies the maximum length of the name (including the terminating NULL).
pszName
Receives the name.

Return Values

Value Description
S_OK Success.
STG_E_NOMOREFILES Failure. The recipient is not present. The name receives NULL.