Platform SDK: SMTP Server Events

IMailMsgPropertyBag::GetStringA

[This is preliminary documentation and subject to change.]

Read a string property.

HRESULT GetStringA(
  [in] DWORD dwPropID,
  [in] DWORD cchLength,
  [out,size_is(cchLength)] LPSTR pszValue
);
dwPropID
Specifies the property ID.
cchLength
Specifies the length in characters (including the terminating NULL) of the buffer to receive the value.

pszValue

Receives the value.

Return Values

Value Description
S_OK Success.
MAILMSG_E_PROPNOTFOUND Failure. The property was not present. The value is zero (NULL).

See Also

ISMTPParams::PutStringA