Share via


IMimeBody::GetData method

Gets an IStream object that can be used to read the data stored in the body. The client can request that the data be converted to the specified encoding type.

Syntax

HRESULT GetData(
  [in]  ENCODINGTYPE ietEncoding,
  [out] IStream      **ppStream
);

Parameters

ietEncoding [in]

Type: ENCODINGTYPE

Specifies the ENCODINGTYPE to be read from the IStream.

ppStream [out]

Type: IStream**

Receives the address of a pointer to the IStream object. The client is responsible for releasing this object.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_FAIL
Indicates that an unknown error has occurred.
E_INVALIDARG
Indicates that ppStream is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.

Remarks

This method actually does very little of the work. MimeOLE converts data as the client calls IStream::Read.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Mimeole.h
IDL
Mimeole.idl
DLL
Inetcomm.dll (version 6.0 or later)