IMimeWebDocument::BindToStorage method

[IMimeWebDocument::BindToStorage is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Obtains an interface that can be used to read the data associated with the Web document. An implementation should support IID_IStream and IID_ILockBytes as possible values.

Syntax

HRESULT BindToStorage(
  [in]  REFIID riid,
  [out] LPVOID *ppvObject
);

Parameters

riid [in]

Type: REFIID

Specifies the requested interface ID. Valid values for this parameter include: IID_IStream or IID_ILockBytes

ppvObject [out]

Type: LPVOID*

On success, contains a pointer to the requested storage object.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that ppvObject is not a supported interface ID or is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
MIME_E_NO_DATA
Indicates that no storage object is available.

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)