OpenMailbox

Top  Previous  Next

OpenMailbox

Mailbox level API

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

 

Delphi syntax:

function OpenMailbox(FileName: LPCTSTR): dword;

C++ syntax:

DWORD WINAPI OpenMailbox(LPCTSTR FileName);

C# syntax:

static extern int OpenMailbox(String fileName);

 

Parameters:

FileName

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

 

 

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 MCore API call model

Delphi sample

C# sample

C++ sample

 

 

 

 

         © MCore Team 2005-2008, please contact as                

Hosted by uCoz