MAPIClientLibraries 2.0 API Documentation

- Main Page
- Related Pages
- Data Structures
- Files
- Examples

- File List
- Globals

Functions
utils.c File Reference

General utility functions. More...

`#include "libmapi/libmapi.h"`
`#include "libmapi/libmapi_private.h"`

## Functions
_PUBLIC_ enum MAPISTATUS | EntryIDFromSourceIDForMessage (TALLOC_CTX *mem_ctx, mapi_object_t *obj_store, mapi_object_t *obj_folder, mapi_object_t *obj_message, struct SBinary_short *entryID)
_PUBLIC_ enum MAPISTATUS | GetFIDFromEntryID (uint16_t cb, uint8_t *lpb, uint64_t parent_fid, uint64_t *fid)

## Detailed Description

General utility functions.

## Function Documentation

_PUBLIC_ enum MAPISTATUS EntryIDFromSourceIDForMessage | ( | TALLOC_CTX * | mem_ctx,
|  | mapi_object_t * | obj_store,
|  | mapi_object_t * | obj_folder,
|  | mapi_object_t * | obj_message,
|  | struct SBinary_short * | entryID
| ) |  |

Build an EntryID for message from folder and message source ID

References GetProps(), MAPIFreeBuffer(), and set_SPropTagArray().

_PUBLIC_ enum MAPISTATUS GetFIDFromEntryID | ( | uint16_t | cb,
|  | uint8_t * | lpb,
|  | uint64_t | parent_fid,
|  | uint64_t * | fid
| ) |  |

Create a FID from an EntryID

Parameters

  cb | count of lpb bytes
  lpb | pointer on an array of bytes
  parent_fid | the parent folder identifier
  fid | pointer to the returned fid

Returns
  MAPI_E_SUCCESS on success, otherwise MAPI_E_INVALID_PARAMETER

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