mapi_object_t support functions More...
mapi_object_t support functions
#define INVALID_HANDLE_VALUE 0xffffffff |
keep intern to this file
Referenced by mapi_object_release(), and mapi_object_is_invalid().
_PUBLIC_ enum MAPISTATUS mapi_object_bookmark_debug | ( | mapi_object_t * | obj_table | ) |
Dump bookmarks associated to a MAPI object table
obj_table | pointer on the MAPI object table |
References mapi_object::private_data, mapi_obj_table::bookmark, OPENCHANGE_RETVAL_IF, mapi_obj_bookmark::index, mapi_obj_bookmark::bin, and mapi_obj_bookmark::next.
enum MAPISTATUS mapi_object_bookmark_find | ( | mapi_object_t * | obj_table, |
uint32_t | bkPosition, | ||
struct SBinary_short * | bin | ||
) |
Fetch a bookmark within a MAPI object table
obj_table | pointer on the MAPI object table |
bkPosition | the bookmark position to find |
bin | pointer on the Sbinary_short the function fills |
References mapi_object::private_data, mapi_obj_table::bookmark, OPENCHANGE_RETVAL_IF, mapi_obj_table::bk_last, mapi_obj_bookmark::index, mapi_obj_bookmark::bin, and mapi_obj_bookmark::next.
Referenced by SeekRowBookmark(), and FindRow().
_PUBLIC_ enum MAPISTATUS mapi_object_bookmark_get_count | ( | mapi_object_t * | obj_table, |
uint32_t * | count | ||
) |
Retrieve the number of bookmarks stored in a MAPI object table
obj_table | pointer to the MAPI object table |
count | pointer to the number of bookmarks to return |
References mapi_object::private_data, OPENCHANGE_RETVAL_IF, and mapi_obj_table::bk_last.
_PUBLIC_ enum MAPISTATUS mapi_object_copy | ( | mapi_object_t * | dst, |
mapi_object_t * | src | ||
) |
Copy MAPI object
This function copies mapi_object data from source to destination.
dst | pointer on the destination MAPI object |
src | pointer on the source MAPI object |
References OPENCHANGE_RETVAL_IF, mapi_object::id, mapi_object::handle, mapi_object::private_data, mapi_object::logon_id, and mapi_object::session.
_PUBLIC_ void mapi_object_debug | ( | mapi_object_t * | obj | ) |
Dump a MAPI object (for debugging)
obj | pointer on the MAPI object to dump out |
References mapi_object::handle, and mapi_object::id.
mapi_handle_t mapi_object_get_handle | ( | mapi_object_t * | obj | ) |
Retrieve the handle associated to a MAPI object
obj | pointer on the MAPI object to retrieve the handle from |
References mapi_object::handle.
Referenced by GetLocalReplicaIds(), FXDestConfigure(), TellVersion(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), FXGetBuffer(), FXPutBuffer(), ICSSyncConfigure(), ICSSyncUploadStateBegin(), ICSSyncUploadStateContinue(), ICSSyncUploadStateEnd(), SetLocalReplicaMidsetDeleted(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), ModifyPermissions(), SetSearchCriteria(), GetSearchCriteria(), CreateMessage(), DeleteMessage(), HardDeleteMessage(), GetMessageStatus(), SetMessageStatus(), MoveCopyMessages(), CreateFolder(), EmptyFolder(), DeleteFolder(), MoveFolder(), CopyFolder(), SetReadFlags(), HardDeleteMessagesAndSubfolders(), GetProps(), SetProps(), SaveChangesAttachment(), GetPropList(), GetPropsAll(), DeleteProps(), SetPropertiesNoReplicate(), DeletePropertiesNoReplicate(), GetNamesFromIDs(), GetIDsFromNames(), QueryNamedProperties(), CopyProps(), CopyTo(), Subscribe(), ProcessNotification(), SetColumns(), QueryPosition(), QueryRows(), QueryColumns(), SeekRow(), SeekRowBookmark(), SeekRowApprox(), CreateBookmark(), FreeBookmark(), SortTable(), Reset(), Restrict(), FindRow(), GetStatus(), Abort(), ExpandRow(), CollapseRow(), GetCollapseState(), SetCollapseState(), CreateAttach(), DeleteAttach(), GetAttachmentTable(), GetValidAttach(), OpenAttach(), ModifyRecipients(), ReadRecipients(), RemoveAllRecipients(), SubmitMessage(), AbortSubmit(), SaveChangesMessage(), TransportSend(), SetMessageReadFlag(), OpenEmbeddedMessage(), OpenFolder(), PublicFolderIsGhosted(), OpenPublicFolderByName(), SetReceiveFolder(), GetReceiveFolder(), GetReceiveFolderTable(), GetTransportFolder(), GetOwningServers(), GetStoreState(), TransportNewMail(), OpenMessage(), ReloadCachedInformation(), OpenStream(), ReadStream(), WriteStream(), CommitStream(), GetStreamSize(), SeekStream(), SetStreamSize(), CopyToStream(), LockRegionStream(), UnlockRegionStream(), CloneStream(), WriteAndCommitStream(), Release(), GetLongTermIdFromId(), GetIdFromLongTermId(), AddressTypes(), SetSpooler(), SpoolerLockMessage(), OptionsData(), mapi_object_is_invalid(), SyncOpenAdvisor(), and SetSyncNotificationGuid().
_PUBLIC_ mapi_id_t mapi_object_get_id | ( | mapi_object_t * | obj | ) |
Retrieve an object ID for a given MAPI object
obj | pointer on the MAPI object to get the ID for |
References mapi_object::id.
Referenced by CreateMessage(), MoveFolder(), CopyFolder(), Subscribe(), AbortSubmit(), PublicFolderIsGhosted(), SetReceiveFolder(), GetOwningServers(), TransportNewMail(), SpoolerLockMessage(), mapi_id_array_add_obj(), and mapi_id_array_del_obj().
_PUBLIC_ enum MAPISTATUS mapi_object_get_logon_id | ( | mapi_object_t * | obj, |
uint8_t * | logon_id | ||
) |
Retrieve the logon id for a given MAPI object
obj | pointer to the object to retrieve the logon id from |
logon_id | pointer to a variable to store the logon id |
References mapi_object::logon_id.
Referenced by GetLocalReplicaIds(), FXDestConfigure(), TellVersion(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), FXGetBuffer(), FXPutBuffer(), ICSSyncConfigure(), ICSSyncUploadStateBegin(), ICSSyncUploadStateContinue(), ICSSyncUploadStateEnd(), SetLocalReplicaMidsetDeleted(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), ModifyPermissions(), SetSearchCriteria(), GetSearchCriteria(), CreateMessage(), DeleteMessage(), HardDeleteMessage(), GetMessageStatus(), SetMessageStatus(), MoveCopyMessages(), CreateFolder(), EmptyFolder(), DeleteFolder(), MoveFolder(), CopyFolder(), SetReadFlags(), HardDeleteMessagesAndSubfolders(), GetProps(), SetProps(), SaveChangesAttachment(), GetPropList(), GetPropsAll(), DeleteProps(), SetPropertiesNoReplicate(), DeletePropertiesNoReplicate(), GetNamesFromIDs(), GetIDsFromNames(), QueryNamedProperties(), CopyProps(), CopyTo(), Subscribe(), SetColumns(), QueryPosition(), QueryRows(), QueryColumns(), SeekRow(), SeekRowBookmark(), SeekRowApprox(), CreateBookmark(), FreeBookmark(), SortTable(), Reset(), Restrict(), FindRow(), GetStatus(), Abort(), ExpandRow(), CollapseRow(), GetCollapseState(), SetCollapseState(), CreateAttach(), DeleteAttach(), GetAttachmentTable(), GetValidAttach(), OpenAttach(), ModifyRecipients(), ReadRecipients(), RemoveAllRecipients(), SubmitMessage(), AbortSubmit(), SaveChangesMessage(), TransportSend(), SetMessageReadFlag(), OpenEmbeddedMessage(), OpenFolder(), PublicFolderIsGhosted(), OpenPublicFolderByName(), SetReceiveFolder(), GetReceiveFolder(), GetReceiveFolderTable(), GetTransportFolder(), GetOwningServers(), GetStoreState(), TransportNewMail(), OpenMessage(), ReloadCachedInformation(), OpenStream(), ReadStream(), WriteStream(), CommitStream(), GetStreamSize(), SeekStream(), SetStreamSize(), CopyToStream(), LockRegionStream(), UnlockRegionStream(), CloneStream(), WriteAndCommitStream(), Release(), GetLongTermIdFromId(), GetIdFromLongTermId(), AddressTypes(), SetSpooler(), SpoolerLockMessage(), OptionsData(), SyncOpenAdvisor(), and SetSyncNotificationGuid().
_PUBLIC_ struct mapi_session* mapi_object_get_session | ( | mapi_object_t * | obj | ) | [read] |
Retrieve the session associated to the MAPI object
obj | the object to get the session for |
References mapi_object::session.
Referenced by GetUserFreeBusyData(), IsFreeBusyConflict(), GetLocalReplicaIds(), FXDestConfigure(), TellVersion(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), FXGetBuffer(), FXPutBuffer(), ICSSyncConfigure(), ICSSyncUploadStateBegin(), ICSSyncUploadStateContinue(), ICSSyncUploadStateEnd(), SetLocalReplicaMidsetDeleted(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), ModifyPermissions(), SetSearchCriteria(), GetSearchCriteria(), CreateMessage(), DeleteMessage(), HardDeleteMessage(), GetMessageStatus(), SetMessageStatus(), MoveCopyMessages(), CreateFolder(), EmptyFolder(), DeleteFolder(), MoveFolder(), CopyFolder(), SetReadFlags(), HardDeleteMessagesAndSubfolders(), GetProps(), SetProps(), SaveChangesAttachment(), GetPropList(), GetPropsAll(), DeleteProps(), SetPropertiesNoReplicate(), DeletePropertiesNoReplicate(), GetNamesFromIDs(), GetIDsFromNames(), QueryNamedProperties(), CopyProps(), CopyTo(), Subscribe(), SetColumns(), QueryPosition(), QueryRows(), QueryColumns(), SeekRow(), SeekRowBookmark(), SeekRowApprox(), CreateBookmark(), FreeBookmark(), SortTable(), Reset(), Restrict(), FindRow(), GetStatus(), Abort(), ExpandRow(), CollapseRow(), GetCollapseState(), SetCollapseState(), CreateAttach(), DeleteAttach(), GetAttachmentTable(), GetValidAttach(), OpenAttach(), ModifyRecipients(), ReadRecipients(), RemoveAllRecipients(), SubmitMessage(), AbortSubmit(), SaveChangesMessage(), TransportSend(), SetMessageReadFlag(), OpenEmbeddedMessage(), OpenFolder(), PublicFolderIsGhosted(), OpenPublicFolderByName(), SetReceiveFolder(), GetReceiveFolder(), GetReceiveFolderTable(), GetTransportFolder(), GetOwningServers(), GetStoreState(), TransportNewMail(), Logoff(), OpenMessage(), ReloadCachedInformation(), OpenStream(), ReadStream(), WriteStream(), CommitStream(), GetStreamSize(), SeekStream(), SetStreamSize(), CopyToStream(), LockRegionStream(), UnlockRegionStream(), CloneStream(), WriteAndCommitStream(), Release(), GetLongTermIdFromId(), GetIdFromLongTermId(), AddressTypes(), SetSpooler(), SpoolerLockMessage(), OptionsData(), WrapCompressedRTFStream(), SyncOpenAdvisor(), SetSyncNotificationGuid(), AddUserPermission(), ModifyUserPermission(), RemoveUserPermission(), and GetBestBody().
_PUBLIC_ enum MAPISTATUS mapi_object_init | ( | mapi_object_t * | obj | ) |
Initialize MAPI object
This function is required to be called before any manipulation of this MAPI object.
obj | the object to initialize |
Referenced by GetUserFreeBusyData(), CreateFolder(), Subscribe(), ModifyUserPermission(), and RemoveUserPermission().
int mapi_object_is_invalid | ( | mapi_object_t * | obj | ) |
Check if the supplied object has a valid handle
obj | pointer on the MAPI object to test |
References mapi_object_get_handle(), and INVALID_HANDLE_VALUE.
_PUBLIC_ void mapi_object_release | ( | mapi_object_t * | obj | ) |
Release MAPI object
This function is required to be called when this MAPI object is no longer required.
obj | pointer on the MAPI object to release |
References mapi_object::handle, INVALID_HANDLE_VALUE, Release(), mapi_object::private_data, mapi_object::store, mapi_object::session, mapi_session::logon_ids, and mapi_object::logon_id.
Referenced by GetUserFreeBusyData(), Logoff(), ModifyUserPermission(), and RemoveUserPermission().
void mapi_object_set_handle | ( | mapi_object_t * | obj, |
mapi_handle_t | handle | ||
) |
Associate a handle to a MAPI object
obj | pointer on the MAPI object on which handle has to be set |
handle | the MAPI handle value |
References mapi_object::handle.
Referenced by FXDestConfigure(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), ICSSyncConfigure(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), CreateMessage(), CreateFolder(), OpenPublicFolder(), OpenUserMailbox(), Subscribe(), CreateAttach(), GetAttachmentTable(), OpenAttach(), OpenEmbeddedMessage(), OpenFolder(), OpenPublicFolderByName(), OpenMessage(), OpenStream(), CloneStream(), and SyncOpenAdvisor().
void mapi_object_set_id | ( | mapi_object_t * | obj, |
mapi_id_t | id | ||
) |
Set the id for a given MAPI object
obj | pointer on the MAPI object to set the session for |
id | Identifier to set to the object obj |
References mapi_object::id.
Referenced by CreateFolder(), SaveChangesMessage(), and OpenFolder().
_PUBLIC_ void mapi_object_set_logon_id | ( | mapi_object_t * | obj, |
uint8_t | logon_id | ||
) |
Set the logon id for a given MAPI object
obj | pointer to the object to set the logon id for |
logon_id | the logon identifier to associate to the MAPI object |
References mapi_object::logon_id.
Referenced by FXDestConfigure(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), ICSSyncConfigure(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), CreateMessage(), CreateFolder(), OpenPublicFolder(), OpenUserMailbox(), CreateAttach(), GetAttachmentTable(), OpenAttach(), OpenEmbeddedMessage(), OpenFolder(), OpenPublicFolderByName(), OpenMessage(), OpenStream(), CloneStream(), and SyncOpenAdvisor().
_PUBLIC_ void mapi_object_set_logon_store | ( | mapi_object_t * | obj | ) |
Mark a MAPI object as a store object
obj | pointer to the object to set the store boolean for |
References mapi_object::store.
Referenced by OpenPublicFolder(), and OpenUserMailbox().
_PUBLIC_ void mapi_object_set_session | ( | mapi_object_t * | obj, |
struct mapi_session * | session | ||
) |
Set the session for a given MAPI object
obj | pointer on the object to set the session for |
session | pointer on the MAPI session to associate to the MAPI object |
References mapi_object::session.
Referenced by FXDestConfigure(), FXCopyFolder(), FXCopyMessages(), FXCopyTo(), FXCopyProperties(), ICSSyncConfigure(), ICSSyncOpenCollector(), ICSSyncGetTransferState(), GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), GetRulesTable(), CreateMessage(), CreateFolder(), OpenPublicFolder(), OpenUserMailbox(), Subscribe(), CreateAttach(), GetAttachmentTable(), OpenAttach(), OpenEmbeddedMessage(), OpenFolder(), OpenPublicFolderByName(), OpenMessage(), OpenStream(), CloneStream(), and SyncOpenAdvisor().
void mapi_object_table_init | ( | TALLOC_CTX * | mem_ctx, |
mapi_object_t * | obj_table | ||
) |
Initialize MAPI object private data to store a MAPI object table
mem_ctx | pointer on the memory context |
obj_table | pointer on the MAPI object |
References mapi_object::private_data, mapi_obj_table::bookmark, mapi_obj_table::proptags, and mapi_obj_table::bk_last.
Referenced by GetContentsTable(), GetHierarchyTable(), GetPermissionsTable(), and GetRulesTable().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |