MimeOleGetRelatedSection Function

Do not use. Returns handle to the first body in the message tree that has the related content type. Also returns whether other instances were found. If related content type is not found, method argument specifies whether it should be created.

Syntax

HRESULT MimeOleGetRelatedSection(
  __in   IMimeMessageTree *pTree,
  __in   boolean fCreate,
  __out  LPHBODY phRelated,
  __out  boolean *pfMultiple
);

Parameters

pTree [in]

Type: IMimeMessageTree*

Specifies a pointer to the IMimeMessageTree object.

fCreate [in]

Type: boolean

Specifies whether to create section if not found.

phRelated [out]

Type: LPHBODY

Receives handle of the related body section.

pfMultiple [out]

Type: boolean*

Returns whether there were multiple/related body parts.

Return Value

Type: HRESULT

Returns one of the following values.

Return codeDescription
S_OK

Indicates success.

E_INVALIDARG

Indicates that pTree is NULL.

MIME_E_NOT_FOUND

Indicates that content type neither found nor created.

 

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Product

Outlook Express 6.0

Header

Mimeole.h

Library

Inetcomm.lib

DLL

Inetcomm.dll (version 6.0 or later)

 

 

Send comments about this topic to Microsoft

Build date: 6/30/2011

Community Additions

ADD
Show: