CreateFolder

 

 

CreateFolder

Folder level API

Call CreateFolder to create new folder in the opened mailbox.

 

Delphi syntax:

function CreateFolder(Handle: TMailboxHandle; ParentFolderID: dword; NewFolderName: LPCTSTR; var Folder: TFolderProp): dword; stdcall;

C++ syntax:

         IMPORT DWORD WINAPI CreateFolder(DWORD Handle, DWORD ParentFolderNumber, LPCTSTR NewFolderName, PFOLDERPROP folder);

C # syntax:

          static extern int CreateFolder(int mailboxHandle, int ParentFolderID, String NewFolderName, out FolderProp folder);

 

Parameters:

Handle

 Identifies the mailbox file.

 

ParentFolderID

ID of parented folder.

 

NewFolderName

Name of new folder.

 

Folder

Properties of created folder.

 

Return Values:

If success then return OMS_OK, else ErrorCode.

 

See also:

OpenMailboxEx, GetFolderProp

 

Samples:

Abstract AIRMail SDK API call model

Delphi sample

C++ sample

  AIRMail SDK by Anti Crisis Software 2005-2008, please contact as

Official distributor