MimeDeleteMessagePart Function  
 
BOOL WINAPI MimeDeleteMessagePart(
  HMESSAGE hMessage,  
  INT nMessagePart  
);

The MimeDeleteMessagePart function deletes the specified message part from the multipart message. The memory allocated for the message part is released.

Parameters

hMessage
Handle to the message.
nMessagePart
The message part index to delete.

Return Value

If the function succeeds, the return value is non-zero. If the function fails, the return value is zero. To get extended error information, call MimeGetLastError.

Remarks

This function cannot be used to delete part zero, which is the main body of the message. Instead use the MimeResetMessage function to clear the entire message.

Requirements

Client: Requires Windows 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use csmsgav7.lib.
Unicode: Implemented as Unicode and ANSI versions.

See Also

MimeCreateMessagePart, MimeCreateMessagePartEx, MimeGetMessagePart, MimeGetMessagePartCount, MimeResetMessage, MimeSetMessagePart