ITnef::SetProps
The ITnef::SetProps
method sets the value of one or more properties for an encapsulated message or
attachment without modifying the original message or attachment.
Quick Info
See ITnef
: IUnknown
HRESULT SetProps(
ULONG ulFlags,
|
|
ULONG ulElemID,
|
|
ULONG cValues,
|
|
LPSPropValue lpProps |
|
) |
|
Parameters
ulFlags
[in] Bitmask
of flags that controls how properties values are set. The following flag can
be set:
TNEF_PROP_CONTAINED
Encodes only
properties from the message or attachment specified by the ulElemID
parameter.
ulElemID
[in] An
attachment s PR_ATTACH_NUM
cValues
[in] Number
of property values in the SPropValue
lpProps
[in] Pointer
to an SPropValue structure containing the property values of the
properties to set.
Return Values
S_OK
The call
succeeded and has returned the expected value or values.
Remarks
Transport
providers, message store providers, and gateways call the ITnef::SetProps
method to set properties to include in the encapsulation of a message or an
attachment without modifying the original message or attachment. Any properties
set with this call override existing properties in the encapsulated message.
SetProps is only supported for encapsulated messages that is, TNEF objects opened with the TNEF_ENCODE flag for the OpenTnefStream
Note that no
actual TNEF encoding for SetProps happens until after the ITnef::Finish
See Also