GetMailLength

Top  Previous  Next

GetMailLength

Mail level API

The GetMailLength gets the size of the selected mail message.

 

Delphi syntax:

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

C++ syntax:

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

C# syntax:

public static extern int GetMailLength(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

Size of the mail message returned here.

 

Return Values:

Returns the size of the mail message in Len parameter.

On success returns OMS_OK or Error Code if fails.

 

Remarks:

Used with GetMail API to obtain a size of memory to reserve.

 

See Also:

OpenMailbox, GetFolderCount, GetFolderProp, GetMail

 

 

 

 

© MCore Team 2005-2008, please contact as    

 

Hosted by uCoz