Platform SDK: SMTP Server Events

IMailMsgRecipients::DomainItem

[This is preliminary documentation and subject to change.]

Get information about one domain.

HRESULT DomainItem(
   [in] DWORD dwIndex,
   [in] DWORD cchLength,
   [out,size_is(cchLength)] LPSTR pszDomain,
   [out] DWORD *pdwRecipientIndex,
   [out] DWORD *pdwRecipientCount
);
dwIndex
Specifies the zero-based index of the domain.
cchLength
Specifies the length in characters (including the terminating NULL) of the buffer to receive the domain name.
pszDomain
Receives the domain name.
pdwRecipientIndex
Receives the index of the first recipient in the domain.
pdwRecipientCount
Recieves the count of the recipients in the domain.

Return Values

Value Description
S_OK Success.
STG_E_NOMOREFILES Failure. The domain is not present. The name receives NULL, and the index and count receive zero.