Setting Message Properties
The following list demonstrates what must be done to set a message property.
-
Define a message property structure.
-
For each property:
-
Set element i of aPropID to the property's identifier.
-
Set element i of aPropVar to the property's value. Each element of aPropVar is an instance of PROPVARIANT. Set the vt field of PROPVARIANT to the property's type indicator and the value field (for example, bVal) to the appropriate property value.
-
If a status code for this property is needed, include an aStatus array.
-
Set cProp to the number of properties specified by the message property structure.
-
Call the appropriate function specifying the message property structure.