Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the data for the body.
Syntax
HRESULT SetData(
[in] ENCODINGTYPE ietEncoding,
[in] LPCSTR pszPriType,
[in] LPCSTR pszSubType,
[in] REFIID riid,
[in] LPVOID pvObject
);
Parameters
-
ietEncoding [in]
-
Type: ENCODINGTYPE
Specifies the current ENCODINGTYPE for the data store in pvObject.
-
pszPriType [in]
-
Type: LPCSTR
Specifies the primary Content-Type, for example, multipart or text. MimeOLE sets the PID_ATT_PRITYPE property for this body.
-
pszSubType [in]
-
Type: LPCSTR
Specifies the secondary Content-Type, for example, mixed or html. MimeOLE sets the PID_ATT_SUBTYPE property for this body.
-
riid [in]
-
Type: REFIID
Specifies the type of interface object in the pvObject parameter. Valid values for this parameter include:
Value Meaning - IID_IStream
- IID_ILockBytes
- IID_IMimeBody
- IID_IMimeMessage
Creates a message/rfc822 body. - IID_IMimeWebDocument
-
pvObject [in]
-
Type: LPVOID
Specifies a pointer to the storage object. The type of object must match the type specified in the riid parameter. MimeOLE adds a reference for this object and holds onto it until the whole message object is freed or until HandsOffStorage is called.
Return value
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that an unknown error has occurred. |
|
Indicates that the body has a multipart primary Content-Type and setting data on this body type is not allowed. |
|
Indicates that riid is not a supported interface ID, that pvObject is NULL, or that ietEncoding is greater than or equal to IET_UNKNOWN. |
|
Indicates that an attempt to allocate memory failed. |
Requirements
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
IDL |
|
DLL |
|