Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IMessageView::SetBodyText method

The IMessageView::SetBodyText method enables a snap-in to set the body text for the result pane message displayed using the MMC message OCX control.

Syntax


HRESULT SetBodyText(
  [in] LPCOLESTR pszBodyText
);

Parameters

pszBodyText [in]

A pointer to a null-terminated string that contains the body text for the result pane message.

Return value

This method can return one of these values.

S_OK

The body text of the result pane message was successfully set.

E_OUTOFMEMORY

Out of memory. MMC cannot set the message body text. The body text will not appear in the message.

Remarks

MMC creates its own copies of the strings passed to it when the snap-in calls the IMessageView::SetTitleText and IMessageView::SetBodyText methods. The snap-in can release the resources at any time after calling SetTitleText and SetBodyText.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

DLL

Mmcndmgr.dll

See also

IMessageView
Using the MMC Message OCX Control

 

 

Show: