GetAttachProp

Attach level API

The GetAttachProp gets properties of the specified attach of the specified mail message.

 

Delphi syntax:

function GetAttachProp(Handle: dword; FolderNumber, MailNumber, AttachNumber: dword; var Attach: TAttachProp):dword;

C++ syntax:

DWORD WINAPI GetAttachProp(DWORD Handle, DWORD FolderNumber, DWORD MailNumber, PATTACHPROP Attach);

C# syntax:

public static extern int GetAttachProp(int boxHandle, int folderNumber, int MailNumber, int AttachNumber, out AttachProp attachprop);

 

Parameters:

Handle

Handle of previously opened mailbox.

FolderNumber

Number of the folder with the mail.

MailNumber

Specifies number of the mail message inside the folder.

Attach

 TAttachProp record for returning the selected attach properties.

 

Return Values:

Returns Attach record with attach properties.

On success returns OMS_OK or Error Code if fails.

 

Remarks:

Use GetAttachCount to know attach number, before call GetAttachProp API.

Theres no need to call any Mail level API before call GetAttachProp API.

 

See Also:

OpenMailbox, GetFolderCount, GetFolderProp

 

Samples:

Abstract AIRMail SDK API call model

 

 

 

 

 

AIRMail SDK Team 2005-2008, please contact as