Platform SDK: SMTP Server Events

IMailMsgPropertyBag::GetProperty

[This is preliminary documentation and subject to change.]

Read a property.

HRESULT GetProperty(
  [in] DWORD dwPropID,
  [in] DWORD cbLength,
  [out] DWORD *pcbLength,
  [out,size_is(cbLength),length_is(*pcbLength)] BYTE *pbValue
);
dwPropID
The property ID of the property to write.
cbLength
The length in bytes of the buffer to receive the value.
pcbLength
Receives the length in bytes of the value. This is set to zero if the property is not present.
pbValue
Receives the value.

Return Values

Value Description
S_OK Success.
MAILMSG_E_PROPNOTFOUND Failure. The property was not present. The value of *pcbLength is set to zero.

See Also

ISMTPParams.PutProperty