MAPI subsystem related operations. More...
#include "libmapi/libmapi.h"#include "libmapi/libmapi_private.h"Functions | |
| _PUBLIC_ enum MAPISTATUS | GetLoadparmContext (struct mapi_context *mapi_ctx, struct loadparm_context **lp_ctx) |
| _PUBLIC_ enum MAPISTATUS | MAPIInitialize (struct mapi_context **_mapi_ctx, const char *profiledb) |
| _PUBLIC_ enum MAPISTATUS | MapiLogonEx (struct mapi_context *mapi_ctx, struct mapi_session **session, const char *profname, const char *password) |
| _PUBLIC_ enum MAPISTATUS | MapiLogonProvider (struct mapi_context *mapi_ctx, struct mapi_session **session, const char *profname, const char *password, enum PROVIDER_ID provider) |
| _PUBLIC_ void | MAPIUninitialize (struct mapi_context *mapi_ctx) |
| _PUBLIC_ enum MAPISTATUS | SetMAPIDebugLevel (struct mapi_context *mapi_ctx, uint32_t level) |
| _PUBLIC_ enum MAPISTATUS | SetMAPIDumpData (struct mapi_context *mapi_ctx, bool status) |
MAPI subsystem related operations.
| _PUBLIC_ enum MAPISTATUS GetLoadparmContext | ( | struct mapi_context * | mapi_ctx, |
| struct loadparm_context ** | lp_ctx | ||
| ) |
Retrieve the MAPI loadparm context for specified MAPI context
| mapi_ctx | pointer to the MAPI context |
| lp_ctx | pointer to a pointer to the loadparm context that the function returns |
| _PUBLIC_ enum MAPISTATUS MAPIInitialize | ( | struct mapi_context ** | _mapi_ctx, |
| const char * | profiledb | ||
| ) |
Initialize mapi context structure
This function inititalizes the MAPI subsystem and open the profile database pointed by profiledb .
| _mapi_ctx | pointer to the MAPI context |
| profiledb | profile database path |
| _PUBLIC_ enum MAPISTATUS MapiLogonEx | ( | struct mapi_context * | mapi_ctx, |
| struct mapi_session ** | session, | ||
| const char * | profname, | ||
| const char * | password | ||
| ) |
Create a full MAPI session
Open providers stored in the profile and return a pointer on a IMAPISession object.
| mapi_ctx | pointer to the MAPI context |
| session | pointer to a pointer to a MAPI session object |
| profname | profile name to use |
| password | password to use for the profile |
password should be set to NULL if the password has been stored in the profile.
References MapiLogonProvider().
| _PUBLIC_ enum MAPISTATUS MapiLogonProvider | ( | struct mapi_context * | mapi_ctx, |
| struct mapi_session ** | session, | ||
| const char * | profname, | ||
| const char * | password, | ||
| enum PROVIDER_ID | provider | ||
| ) |
Initialize a session on the specified provider
| mapi_ctx | pointer to the MAPI context |
| session | pointer to a pointer to a MAPI session object |
| profname | profile name |
| password | profile password |
| provider | provider we want to establish a connection on |
password should be set to NULL if the password has been stored in the profile.
Supported providers are:
References emsmdb_disconnect_dtor(), LoadProfile(), nspi_disconnect_dtor(), and OpenProfile().
Referenced by DuplicateProfile(), and MapiLogonEx().
| _PUBLIC_ void MAPIUninitialize | ( | struct mapi_context * | mapi_ctx | ) |
Uninitialize MAPI subsystem
| mapi_ctx | pointer to the MAPI context |
This function uninitializes the MAPI context and destroy recursively the whole mapi session and associated objects hierarchy
| _PUBLIC_ enum MAPISTATUS SetMAPIDebugLevel | ( | struct mapi_context * | mapi_ctx, |
| uint32_t | level | ||
| ) |
Set MAPI debug level
| mapi_ctx | pointer to the MAPI context |
| level | the debug level to set |
| _PUBLIC_ enum MAPISTATUS SetMAPIDumpData | ( | struct mapi_context * | mapi_ctx, |
| bool | status | ||
| ) |
Enable MAPI network trace output
| mapi_ctx | pointer to the MAPI context |
| status | the status |
possible status values/behavior:
|
|
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |