public OCPF write API More...
#include "libocpf/ocpf_private.h"
#include <libocpf/ocpf.h>
Functions | |
_PUBLIC_ int | ocpf_write_auto (mapi_object_t *obj_message, struct mapi_SPropValue_array *mapi_lpProps) |
_PUBLIC_ int | ocpf_write_commit (void) |
_PUBLIC_ int | ocpf_write_init (const char *filename, mapi_id_t folder_id) |
public OCPF write API
_PUBLIC_ int ocpf_write_auto | ( | mapi_object_t * | obj_message, | |
struct mapi_SPropValue_array * | mapi_lpProps | |||
) |
Create the OCPF structure required for the commit operation
This function process properties and named properties from the specified mapi_SPropValue_array and generates an OCPF structure with all the attributes required to create an OCPF file in the commit operation.
obj_message | the message object | |
mapi_lpProps | the array of mapi properties returned by GetPropsAll |
_PUBLIC_ int ocpf_write_commit | ( | void | ) |
Write OCPF structure to OCPF file
This function dumps the OCPF structure content into the OCPF file defined in ocpf_write_init.
_PUBLIC_ int ocpf_write_init | ( | const char * | filename, | |
mapi_id_t | folder_id | |||
) |
Specify the OCPF file name to write
Specify the ocpf file to create
filename | output filename | |
folder_id | the folder |
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |