OpenMailboxEx

 

 

OpenMailboxEx

Mailbox level API

OpenMailbox opens a mailbox file. If the mailbox type is not supported, OpenMailbox returns error code.

 

Delphi syntax:

function OpenMailboxEx(FileName: LPCTSTR; AccessFlag: byte): dword;

C++ syntax:

DWORD WINAPI OpenMailboxEx(LPCTSTR FileName, byte AccessFlag);

C# syntax:

static extern int OpenMailboxEx(String filename, byte AccessFlag);

 

Parameters:

FileName

Points to a null-terminated string, is the path to the mailbox file to open.

 

AccessFlag

 Access right to opened mailbox.

 

Return Values:

Returns a handle of opened mailbox file or an error code if fails.

 

Remarks:

·

Can be used to check if the FileName points to a supported mailbox file type.

·

Use CloseMailbox to close opened mailbox file.

 

·

Use GetFolderCount and GetFolderProp to get folder structure of opened mailbox file.

 

Samples:

Abstract AIRMail SDK API call model

Delphi sample

C# sample

C++ sample

 

 

 

 

         © AIRMail SDK Team 2005-2008, please contact as