GetAttachLength

Attach level API

The GetAttachLength gets the size of the specified attach of the specified mail message.

 

Delphi syntax:

function GetAttachLength(Handle: TMailboxHandle; FolderNumber, MailNumber, AttachNumber: dword; var Size: dword): dword;

C++ syntax:

            DWORD WINAPI GetAttachLength(DWORD Handle, DWORD FolderNumber, DWORD MailNumber, DWORD AttachNumber, DWORD * Size);

C# syntax:

            public static extern int GetAttachLength(int boxHandle, int folderNumber, int mailNumber, int attachNumber, out Int32 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.

Size

 Size of the selected attach.

 

Return Values:
Returns size of the selected attach inside selected mail message in Size parameter.

On success returns OMS_OK or Error Code if fails.


Remarks:
Used with GetAttach API to obtain a size of memory to reserve.


See Also:

OpenMailbox, GetFolderCount, GetFolderProp, GetAttachCount

 

 

 

 

© AIRMail SDK Team 2005-2008, please contact as