GetMailBodyLength

Top  Previous  Next

GetMailBodyLength

Mail level API

The GetMailBodyLength gets the size of the text part of the specified mail message.

 

Delphi syntax:

function GetMailBodyLength (Handle: TMailboxHandle; FolderNumber, MailNumber: dword; var Len: Int64): dword;

C++ syntax:

          DWORD WINAPI GetMailBodyLength (DWORD Handle, DWORD FolderNumber, DWORD MailNumber, LONGLONG * Len);

C# syntax:

public static extern int GetMailBodyLength (int boxHandle, int FolderNumber, int MailNumber, out Int64 Len);

 

Parameters:

Handle

Handle of previously opened mailbox.

FolderNumber

Number of the folder with the mail.

MailNumber

Specifies an ordinal number of a mail message inside the folder.

Len

Out parameter that receives message body length.

 

Return Values:

Return the size of the text part of the mail message in Len parameter.

On success return OMS_OK or Error Code if fails.

 

Remarks:

Use with GetMailBody API to obtain a size of memory to allocate for holding mail body.

 

 

See Also:

GetMailBody, OpenMailbox, GetFolderCount, GetFolderProp

 

 

 

© MCore Team 2005-2008, please contact as    

 

Hosted by uCoz