Platform SDK: SMTP Server Events

IMailMsgProperties::GetProperty

[This is preliminary documentation and subject to change.]

Read a property from the MailMsg object.

HRESULT GetProperty(
   [in] DWORD dwPropID,
   [in] DWORD cbLength,
   [out] DWORD *pcbLength,
   [out,size_is(cbLength),length_is(*pcbLength)] BYTE *pbValue
);
dwPropID
Specifies the property ID.
cbLength
Specifies 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.
S_FALSE Success. The property was not present. *pcbLength is set to zero.

See Also

IMailMsgProperties.PutProperty