Share via


IMimeMessage::CreateWebPage method

Creates a moniker that can be used to bind to the HTML representation of the message object.

Syntax

HRESULT CreateWebPage(
  [in]  IStream              *pRootStm,
  [in]  LPWEBPAGEOPTIONS     pOptions,
  [in]  IMimeMessageCallback *pCallback,
  [out] IMoniker             **ppMoniker
);

Parameters

pRootStm [in]

Type: IStream*

Specifies a pointer to an IStream interface that is used as the primary HTML source for the webpage. If this parameter is NULL, choosesimeOLE chooses the correct body to use as the HTML source for the webpage.

pOptions [in]

Type: LPWEBPAGEOPTIONS

Specifies the WEBPAGEOPTIONS to use to build the webpage.

pCallback [in]

Type: IMimeMessageCallback*

Specifies a pointer to the IMimeMessageCallback interface to use to build the webpage.

ppMoniker [out]

Type: IMoniker**

Receives the address of a pointer to a IMoniker interface. 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 ppMoniker is NULL or that pOptions is not NULL and pOptions->cbSize does not equal the size of a valid WEBPAGEOPTIONS structure.
E_OUTOFMEMORY
Indicates an attempt to allocate memory failed.

Remarks

The moniker returned from this method can be loaded into another object that supports IPersistMoniker.

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)