MimeDeleteMessage Function  
 
BOOL WINAPI MimeDeleteMessage(
  HMESSAGE hMessage  
);

The MimeDeleteMessage function deletes the specified message and releases the memory allocated for the header and body.

Parameters

hMessage
Handle to the message.

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

Once the message has been deleted, the handle is invalid and should not be referenced.

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.

See Also

MimeCreateMessage, MimeDeleteMessagePart, MimeResetMessage