IMimeBody::SetDisplayName method

Sets the display name for the body. MimeOLE always appends the size of the body to the end of the display name; for example, "Display Name (560 KB)".

Syntax

HRESULT SetDisplayName(
  [in] LPCSTR pszDisplay
);

Parameters

pszDisplay [in]

Type: LPCSTR

Specifies the display name.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that pszDisplay is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.

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)