entryid.c File Reference

EntryID convenient routines. More...

#include "mapiproxy/dcesrv_mapiproxy.h"
#include "libmapiproxy.h"
#include "libmapi/libmapi.h"
#include "libmapi/libmapi_private.h"

Functions

enum MAPISTATUS entryid_set_AB_EntryID (TALLOC_CTX *mem_ctx, const char *legacyExchangeDN, struct SBinary_short *bin)
 
_PUBLIC_ enum MAPISTATUS entryid_set_folder_EntryID (TALLOC_CTX *mem_ctx, struct GUID *MailboxGuid, struct GUID *ReplGuid, uint16_t FolderType, uint64_t fid, struct Binary_r **rbin)
 

Detailed Description

EntryID convenient routines.

Function Documentation

enum MAPISTATUS entryid_set_AB_EntryID ( TALLOC_CTX *  mem_ctx,
const char *  legacyExchangeDN,
struct SBinary_short *  bin 
)

Build an Address Book EntryID from a legacyExchangeDN

Parameters
mem_ctxpointer to the memory context
legacyExchangeDNthe string to copy into the binary blob
binthe binary blob where the function stores results

References GUID_NSPI.

Referenced by EcDoRpc_RopCreateMessage(), and emsmdbp_object_get_properties_mailbox().

_PUBLIC_ enum MAPISTATUS entryid_set_folder_EntryID ( TALLOC_CTX *  mem_ctx,
struct GUID *  MailboxGuid,
struct GUID *  ReplGuid,
uint16_t  FolderType,
uint64_t  fid,
struct Binary_r **  rbin 
)

Build a folder EntryID

Parameters
mem_ctxpointer to the memory context
MailboxGuidpointer to the Mailbox Guid
ReplGuidpointer to the Replica Guid
FolderTypethe type of folder
fidthe folder identifier
rbinthe Binary_r structure where the function stores results
Returns
MAPI_E_SUCCESS on success, otherwise MAPI_E_INVALID_PARAMETER

Creative Commons License
Creative Commons Attribution icon Creative Commons Share Alike icon
This content is licensed under the Creative Commons
Attribution ShareAlike License v. 3.0:
http://creativecommons.org/licenses/by-sa/3.0/