IMAPIFolder : IMAPIContainer

The IMAPIFolder interface is used to perform operations on the messages and subfolders in a folder.

Quick Info

Header file: MAPIDEFS.H
Exposed by: Folder objects
Implemented by: Message store providers
Called by: Client applications and MAPI
Interface identifier: IID_IMAPIFolder
Pointer type: LPMAPIFOLDER
Transaction model: Nontransacted

Vtable Order

CreateMessage Creates a new message.
CopyMessages Copies or moves one or more messages.
DeleteMessages Deletes one or more messages.
CreateFolder Creates a new subfolder.
CopyFolder Copies or moves a subfolder.
DeleteFolder Deletes a subfolder.
SetReadFlags Sets or clears the MSGFLAG_READ flag in the PR_MESSAGE_FLAGS property of one or more of the folder's messages and manages the sending of read reports.
GetMessageStatus Obtains a message's status.
SetMessageStatus Sets a message's status.
SaveContentsSort Sets the default sort order for the contents table.
EmptyFolder Removes all of the subfolders and messages without deleting the folder itself.

Required properties Access
PR_DISPLAY_NAME Read/write
PR_ENTRYID Read-only
PR_FOLDER_TYPE Read/write
PR_OBJECT_TYPE Read-only
PR_PARENT_ENTRYID Read-only
PR_RECORD_KEY Read-only
PR_STORE_ENTRYID Read-only
PR_STORE_RECORD_KEY Read-only