MIMEEntityIsMultiPart
Function : MIME
MIMEEntityIsMultiPart - test input MIME entity to determine if it is a multipart content type.
#include <mimedir.h>
BOOL LNPUBLIC MIMEEntityIsMultiPart(
PMIMEENTITY pMimeEntity);
This function MIMEEntityIsMultiPart returns TRUE if the input MIME entity is a multipart entity and has child entities.
Parameters : Input : pMimeEntity - a pointer to current MIME entity.
Output : (routine) - TRUE if input MIME entity is a multipart entity with child entities, otherwise FALSE.
Sample Usage :
HMIMEDIRECTORY hMIMEDir;
STATUS error;
PMIMEENTITY pRootEntity;
BOOL bIsMultiPart = FALSE;
if (error = MIMEOpenDirectory(hNote, &hMIMEDir)) {
goto exit;
}
if (error = MIMEGetRootEntity(hNote, &pRootEntity)) {
goto exit;
}
bIsMultiPart = MIMEEntityIsMultiPart(pRootEntity);
if (error = MIMEFreeDirectory(hMIMEDir)) {
goto exit;
}