MimeGetMessagePartCount Function  
 
INT WINAPI MimeGetMessagePartCount(
  HMESSAGE hMessage  
);

The MimeGetMessagePartCount function returns the total number of message parts for the specified message. Each message consists of at least one part.

Parameters

hMessage
Handle to the message.

Return Value

If the function succeeds, the return value is the number of message parts. If the function fails, the return value is MIME_ERROR. To get extended error information, call MimeGetLastError.

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

MimeCreateMessagePart, MimeGetMessagePart, MimeSetMessagePart