Share via


IMimeMessageTree::HandsOffStorage method

Forces the object to release storage objects that it does not own.

Syntax

HRESULT HandsOffStorage();

Parameters

This method has no parameters.

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_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
STG_E_MEDIUMFULL
Indicates that not enough disk space or memory is available to save the message.

Remarks

When a message is loaded through IPersistStreamInit or IPersistFile, MimeOLE keeps a reference on the IStream or file, respectively, therefore keeping those resources open. A client can use this method to force the message object to release those resources.

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)