/*****************/
/* Function 0x04 */
MAPISTATUS NspiSeekEntries(
- [in] policy_handle *handle,
- [in] uint32 Reserved,
- [in,out] STAT *pStat,
- [in] SPropValue *pTarget,
- [in,unique] SPropTagArray *lpETable,
- [in,unique] SPropTagArray *pPropTags,
- [out] SRowSet **pRows
+ [in] policy_handle *handle,
+ [in] uint32 Reserved,
+ [in,out] STAT *pStat,
+ [in] SPropValue *pTarget,
+ [in,unique] PropertyTagArray_r *lpETable,
+ [in,unique] SPropTagArray *pPropTags,
+ [out] SRowSet **pRows
);
/*****************/
/* Function 0x05 */
MAPISTATUS NspiGetMatches(
- [in] policy_handle *handle,
- [in] uint32 Reserved,
- [in,out] STAT *pStat,
- [in][unique] SPropTagArray *pReserved,
- [in] uint32 Reserved2,
- [in][unique] Restriction_r *Filter,
- [in][unique] PropertyName_r *lpPropName,
- [in] uint32 ulRequested,
- [out] SPropTagArray **ppOutMIds,
- [in][unique] SPropTagArray *pPropTags,
- [out] SRowSet **ppRows
+ [in] policy_handle *handle,
+ [in] uint32 Reserved,
+ [in,out] STAT *pStat,
+ [in][unique] SPropTagArray *pReserved,
+ [in] uint32 Reserved2,
+ [in][unique] Restriction_r *Filter,
+ [in][unique] PropertyName_r *lpPropName,
+ [in] uint32 ulRequested,
+ [out] PropertyTagArray_r **ppOutMIds,
+ [in][unique] SPropTagArray *pPropTags,
+ [out] SRowSet **ppRows
);
/*****************/
/* Function 0x06 */
MAPISTATUS NspiResortRestriction(
- [in] policy_handle *handle,
- [in] uint32 Reserved,
- [in,out] STAT *pStat,
- [in] SPropTagArray *pInMIds,
- [in,out] SPropTagArray **ppMIds
+ [in] policy_handle *handle,
+ [in] uint32 Reserved,
+ [in,out] STAT *pStat,
+ [in] PropertyTagArray_r *pInMIds,
+ [in,out] PropertyTagArray_r **ppMIds
);
/*****************/
/* Function 0x07 */
MAPISTATUS NspiDNToMId(
- [in] policy_handle *handle,
- [in] uint32 Reserved,
- [in] StringsArray_r *pNames,
- [out] SPropTagArray **ppMIds
+ [in] policy_handle *handle,
+ [in] uint32 Reserved,
+ [in] StringsArray_r *pNames,
+ [out] PropertyTagArray_r **ppMIds
);
/*****************/
struct nspi_context *nspi_ctx;
struct SRowSet *SRowSet;
struct SPropTagArray *SPropTagArray = NULL;
- struct SPropTagArray *pMId = NULL;
+ struct PropertyTagArray_r *pMId = NULL;
struct PropertyTagArray_r *flaglist = NULL;
struct StringsArray_r pNames;
const char *usernames[2];
pNames.Count = 0x1;
pNames.Strings = (const char **) talloc_array(mem_ctx, char **, 1);
pNames.Strings[0] = email;
- pMId = talloc_zero(mem_ctx, struct SPropTagArray);
+ pMId = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi_ctx, mem_ctx, &pNames, &pMId);
MAPIFreeBuffer((char *)pNames.Strings[0]);
MAPIFreeBuffer((char **)pNames.Strings);
const char *legacyDN,
bool server)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi;
- struct StringsArray_r pNames;
- struct SRowSet *SRowSet;
- struct SPropTagArray *SPropTagArray = NULL;
- struct SPropTagArray *MId_array;
- struct StringArray_r *MVszA = NULL;
- const char *binding = NULL;
- char *HomeMDB = NULL;
- char *server_dn;
- uint32_t i;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi;
+ struct StringsArray_r pNames;
+ struct SRowSet *SRowSet;
+ struct SPropTagArray *SPropTagArray = NULL;
+ struct PropertyTagArray_r *MId_array;
+ struct StringArray_r *MVszA = NULL;
+ const char *binding = NULL;
+ char *HomeMDB = NULL;
+ char *server_dn;
+ uint32_t i;
/* Sanity checks */
OPENCHANGE_RETVAL_IF(!session, MAPI_E_NOT_INITIALIZED, NULL);
pNames.Strings = (const char **) talloc_array(mem_ctx, char **, 1);
pNames.Strings[0] = (const char *) talloc_strdup(pNames.Strings, legacyDN);
- MId_array = talloc_zero(mem_ctx, struct SPropTagArray);
+ MId_array = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi, mem_ctx, &pNames, &MId_array);
MAPIFreeBuffer(pNames.Strings);
OPENCHANGE_RETVAL_IF(retval, retval, mem_ctx);
pNames.Count = 0x1;
pNames.Strings = (const char **) talloc_array(mem_ctx, char **, 1);
pNames.Strings[0] = (const char *) talloc_strdup(pNames.Strings, server_dn);
- MId_array = talloc_zero(mem_ctx, struct SPropTagArray);
+ MId_array = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi, mem_ctx, &pNames, &MId_array);
MAPIFreeBuffer(pNames.Strings);
OPENCHANGE_RETVAL_IF(retval, retval, mem_ctx);
mapi_profile_callback_t callback,
const void *private_data)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct mapi_context *mapi_ctx;
- struct nspi_context *nspi;
- struct SPropTagArray *SPropTagArray = NULL;
- struct Restriction_r Filter;
- struct SRowSet *SRowSet;
- struct SPropValue *lpProp = NULL;
- struct SPropTagArray *MIds = NULL;
- struct SPropTagArray MIds2;
- struct SPropTagArray *MId_server = NULL;
- struct StringsArray_r pNames;
- const char *profname;
- uint32_t instance_key = 0;
- uint32_t index = 0;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct mapi_context *mapi_ctx;
+ struct nspi_context *nspi;
+ struct SPropTagArray *SPropTagArray = NULL;
+ struct Restriction_r Filter;
+ struct SRowSet *SRowSet;
+ struct SPropValue *lpProp = NULL;
+ struct PropertyTagArray_r *MIds = NULL;
+ struct PropertyTagArray_r MIds2;
+ struct PropertyTagArray_r *MId_server = NULL;
+ struct StringsArray_r pNames;
+ const char *profname;
+ uint32_t instance_key = 0;
+ uint32_t index = 0;
OPENCHANGE_RETVAL_IF(!session, MAPI_E_NOT_INITIALIZED, NULL);
OPENCHANGE_RETVAL_IF(!session->nspi->ctx, MAPI_E_END_OF_SESSION, NULL);
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(SPropTagArray);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(MIds);
MIds2.cValues = 0x1;
- MIds2.aulPropTag = (enum MAPITAGS *) &instance_key;
+ MIds2.aulPropTag = &instance_key;
set_profile_attribute(mapi_ctx, profname, *SRowSet, index, PR_EMAIL_ADDRESS, "EmailAddress");
set_profile_attribute(mapi_ctx, profname, *SRowSet, index, PR_DISPLAY_NAME, "DisplayName");
pNames.Strings[0] = (const char *) talloc_asprintf(mem_ctx, SERVER_DN,
nspi->org, nspi->org_unit,
nspi->servername);
- MId_server = talloc_zero(mem_ctx, struct SPropTagArray);
+ MId_server = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi, mem_ctx, &pNames, &MId_server);
MAPIFreeBuffer((char *)pNames.Strings[0]);
MAPIFreeBuffer((char **)pNames.Strings);
struct nspi_context *nspi_bind(TALLOC_CTX *, struct dcerpc_pipe *, struct cli_credentials *, uint32_t, uint32_t, uint32_t);
enum MAPISTATUS nspi_unbind(struct nspi_context *);
enum MAPISTATUS nspi_UpdateStat(struct nspi_context *, TALLOC_CTX *, uint32_t *);
-enum MAPISTATUS nspi_QueryRows(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct SPropTagArray *, uint32_t, struct SRowSet **);
-enum MAPISTATUS nspi_SeekEntries(struct nspi_context *, TALLOC_CTX *, enum TableSortOrders, struct SPropValue *, struct SPropTagArray *, struct SPropTagArray *, struct SRowSet **);
-enum MAPISTATUS nspi_GetMatches(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct Restriction_r *, struct SRowSet **, struct SPropTagArray **);
-enum MAPISTATUS nspi_ResortRestriction(struct nspi_context *, TALLOC_CTX *, enum TableSortOrders, struct SPropTagArray *, struct SPropTagArray **);
-enum MAPISTATUS nspi_DNToMId(struct nspi_context *, TALLOC_CTX *, struct StringsArray_r *, struct SPropTagArray **);
+enum MAPISTATUS nspi_QueryRows(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct PropertyTagArray_r *MIds, uint32_t, struct SRowSet **);
+enum MAPISTATUS nspi_SeekEntries(struct nspi_context *, TALLOC_CTX *, enum TableSortOrders, struct SPropValue *, struct SPropTagArray *, struct PropertyTagArray_r *pMIds, struct SRowSet **);
+enum MAPISTATUS nspi_GetMatches(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct Restriction_r *, struct SRowSet **, struct PropertyTagArray_r **ppOutMIds);
+enum MAPISTATUS nspi_ResortRestriction(struct nspi_context *, TALLOC_CTX *, enum TableSortOrders, struct PropertyTagArray_r *pInMIds, struct PropertyTagArray_r **ppMIds);
+enum MAPISTATUS nspi_DNToMId(struct nspi_context *, TALLOC_CTX *, struct StringsArray_r *, struct PropertyTagArray_r **ppMIds);
enum MAPISTATUS nspi_GetPropList(struct nspi_context *, TALLOC_CTX *, bool, uint32_t, struct SPropTagArray **);
-enum MAPISTATUS nspi_GetProps(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct SPropTagArray *, struct SRowSet **);
+enum MAPISTATUS nspi_GetProps(struct nspi_context *, TALLOC_CTX *, struct SPropTagArray *, struct PropertyTagArray_r *MId, struct SRowSet **);
enum MAPISTATUS nspi_CompareMIds(struct nspi_context *, TALLOC_CTX *, uint32_t, uint32_t, uint32_t *);
enum MAPISTATUS nspi_ModProps(struct nspi_context *, TALLOC_CTX *, uint32_t, struct SPropTagArray *, struct SRow *);
enum MAPISTATUS nspi_GetSpecialTable(struct nspi_context *, TALLOC_CTX *, uint32_t, struct SRowSet **);
_PUBLIC_ enum MAPISTATUS nspi_QueryRows(struct nspi_context *nspi_ctx,
TALLOC_CTX *mem_ctx,
struct SPropTagArray *pPropTags,
- struct SPropTagArray *MIds,
+ struct PropertyTagArray_r *MIds,
uint32_t count,
struct SRowSet **ppRows)
{
enum TableSortOrders SortType,
struct SPropValue *pTarget,
struct SPropTagArray *pPropTags,
- struct SPropTagArray *pMIds,
+ struct PropertyTagArray_r *pMIds,
struct SRowSet **pRows)
{
struct NspiSeekEntries r;
struct SPropTagArray *pPropTags,
struct Restriction_r *Filter,
struct SRowSet **ppRows,
- struct SPropTagArray **ppOutMIds)
+ struct PropertyTagArray_r **ppOutMIds)
{
struct NspiGetMatches r;
NTSTATUS status;
_PUBLIC_ enum MAPISTATUS nspi_ResortRestriction(struct nspi_context *nspi_ctx,
TALLOC_CTX *mem_ctx,
enum TableSortOrders SortType,
- struct SPropTagArray *pInMIds,
- struct SPropTagArray **ppMIds)
+ struct PropertyTagArray_r *pInMIds,
+ struct PropertyTagArray_r **ppMIds)
{
struct NspiResortRestriction r;
enum MAPISTATUS retval;
NTSTATUS status;
- struct SPropTagArray *ppInMIds = NULL;
+ struct PropertyTagArray_r *ppInMIds = NULL;
struct STAT *pStat = NULL;
/* Sanity checks */
_PUBLIC_ enum MAPISTATUS nspi_DNToMId(struct nspi_context *nspi_ctx,
TALLOC_CTX *mem_ctx,
struct StringsArray_r *pNames,
- struct SPropTagArray **ppMIds)
+ struct PropertyTagArray_r **ppMIds)
{
struct NspiDNToMId r;
NTSTATUS status;
_PUBLIC_ enum MAPISTATUS nspi_GetProps(struct nspi_context *nspi_ctx,
TALLOC_CTX *mem_ctx,
struct SPropTagArray *pPropTags,
- struct SPropTagArray *MId,
+ struct PropertyTagArray_r *MId,
struct SRowSet **SRowSet)
{
enum MAPISTATUS retval;
struct exchange_nsp_session *session;
struct emsabp_context *emsabp_ctx = NULL;
- struct SPropTagArray *ppOutMIds = NULL;
+ struct PropertyTagArray_r *ppOutMIds = NULL;
uint32_t i;
bool found = false;
OPENCHANGE_RETVAL_IF(found == false, MAPI_E_LOGON_FAILED, NULL);
/* Step 1. Retrieve MIds array given search criterias */
- ppOutMIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ ppOutMIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
ppOutMIds->cValues = 0;
ppOutMIds->aulPropTag = NULL;
OPENCHANGE_RETVAL_IF(found == false, MAPI_E_LOGON_FAILED, NULL);
- r->out.ppMIds = talloc_array(mem_ctx, struct SPropTagArray *, 2);
- r->out.ppMIds[0] = talloc_zero(mem_ctx, struct SPropTagArray);
+ r->out.ppMIds = talloc_array(mem_ctx, struct PropertyTagArray_r *, 2);
+ r->out.ppMIds[0] = talloc_zero(mem_ctx, struct PropertyTagArray_r);
r->out.ppMIds[0]->cValues = r->in.pNames->Count;
- r->out.ppMIds[0]->aulPropTag = (enum MAPITAGS *) talloc_array(mem_ctx, uint32_t, r->in.pNames->Count);
+ r->out.ppMIds[0]->aulPropTag = talloc_array(mem_ctx, uint32_t, r->in.pNames->Count);
for (i = 0; i < r->in.pNames->Count; i++) {
/* Step 1. Check if the input legacyDN exists */
enum MAPISTATUS emsabp_fetch_attrs(TALLOC_CTX *, struct emsabp_context *, struct SRow *, uint32_t, uint32_t, struct SPropTagArray *);
enum MAPISTATUS emsabp_table_fetch_attrs(TALLOC_CTX *, struct emsabp_context *, struct SRow *, uint32_t, struct PermanentEntryID *,
struct PermanentEntryID *, struct ldb_message *, bool);
-enum MAPISTATUS emsabp_search(TALLOC_CTX *, struct emsabp_context *, struct SPropTagArray *, struct Restriction_r *, struct STAT *, uint32_t);
+enum MAPISTATUS emsabp_search(TALLOC_CTX *, struct emsabp_context *, struct PropertyTagArray_r *, struct Restriction_r *, struct STAT *, uint32_t);
enum MAPISTATUS emsabp_search_dn(struct emsabp_context *, const char *, struct ldb_message **);
enum MAPISTATUS emsabp_search_legacyExchangeDN(struct emsabp_context *, const char *, struct ldb_message **, bool *);
enum MAPISTATUS emsabp_ab_container_by_id(TALLOC_CTX *, struct emsabp_context *, uint32_t, struct ldb_message **);
\return MAPI_E_SUCCESS on success, otherwise MAPI error
*/
_PUBLIC_ enum MAPISTATUS emsabp_search(TALLOC_CTX *mem_ctx, struct emsabp_context *emsabp_ctx,
- struct SPropTagArray *MIds, struct Restriction_r *restriction,
+ struct PropertyTagArray_r *MIds, struct Restriction_r *restriction,
struct STAT *pStat, uint32_t limit)
{
enum MAPISTATUS retval;
return MAPI_E_TABLE_TOO_BIG;
}
- MIds->aulPropTag = (enum MAPITAGS *) talloc_array(emsabp_ctx->mem_ctx, uint32_t, res->count);
+ MIds->aulPropTag = talloc_array(emsabp_ctx->mem_ctx, uint32_t, res->count);
MIds->cValues = res->count;
/* Step 2. Create session MId for all fetched records */
*/
_PUBLIC_ bool mapitest_nspi_QueryRows(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct SPropTagArray *MIds;
- struct SRowSet *SRowSet;
- struct SPropTagArray *SPropTagArray;
- struct SPropValue *lpProp;
- struct Restriction_r Filter;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct PropertyTagArray_r *MIds;
+ struct SRowSet *SRowSet;
+ struct SPropTagArray *SPropTagArray;
+ struct SPropValue *lpProp;
+ struct Restriction_r Filter;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_QueryRows");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(SRowSet);
*/
_PUBLIC_ bool mapitest_nspi_GetMatches(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct SPropTagArray *MIds;
- struct SRowSet *SRowSet;
- struct SPropTagArray *SPropTagArray;
- struct SPropValue *lpProp;
- struct Restriction_r Filter;
- bool ret = true;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct PropertyTagArray_r *MIds;
+ struct SRowSet *SRowSet;
+ struct SPropTagArray *SPropTagArray;
+ struct SPropValue *lpProp;
+ struct Restriction_r Filter;
+ bool ret = true;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_GetMatches");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(SRowSet);
*/
_PUBLIC_ bool mapitest_nspi_ResortRestriction(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct Restriction_r Filter;
- struct SRowSet *SRowSet = NULL;
- struct SPropTagArray *SPropTagArray = NULL;
- struct SPropValue *lpProp = NULL;
- struct SPropTagArray *MIds = NULL;
- struct SPropTagArray *ppMIds = NULL;
- bool ret = true;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct Restriction_r Filter;
+ struct SRowSet *SRowSet = NULL;
+ struct SPropTagArray *SPropTagArray = NULL;
+ struct SPropValue *lpProp = NULL;
+ struct PropertyTagArray_r *MIds = NULL;
+ struct PropertyTagArray_r *ppMIds = NULL;
+ bool ret = true;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_ResortRestriction");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(SPropTagArray);
return false;
}
- ppMIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ ppMIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_ResortRestriction(nspi_ctx, mem_ctx, SortTypeDisplayName, MIds, &ppMIds);
mapitest_print_retval_clean(mt, "NspiResortRestriction", retval);
if (retval != MAPI_E_SUCCESS) {
*/
_PUBLIC_ bool mapitest_nspi_DNToMId(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct StringsArray_r pNames;
- struct SPropTagArray *MId;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct StringsArray_r pNames;
+ struct PropertyTagArray_r *MId;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_DNToMId");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
pNames.Strings = (const char **) talloc_array(mem_ctx, char **, 1);
pNames.Strings[0] = mt->mapi_ctx->session->profile->homemdb;
- MId = talloc_zero(mem_ctx, struct SPropTagArray);
+ MId = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi_ctx, mem_ctx, &pNames, &MId);
MAPIFreeBuffer((char **)pNames.Strings);
*/
_PUBLIC_ bool mapitest_nspi_GetPropList(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct SPropTagArray *pPropTags = 0;
- struct SPropTagArray *MIds;
- struct SPropValue *lpProp;
- struct Restriction_r Filter;
- struct SPropTagArray *SPropTagArray;
- struct SRowSet *SRowSet;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct SPropTagArray *pPropTags = 0;
+ struct PropertyTagArray_r *MIds;
+ struct SPropValue *lpProp;
+ struct Restriction_r Filter;
+ struct SPropTagArray *SPropTagArray;
+ struct SRowSet *SRowSet;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_GetPropList");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(SPropTagArray);
MAPIFreeBuffer(lpProp);
*/
_PUBLIC_ bool mapitest_nspi_GetProps(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct StringsArray_r pNames;
- struct SPropTagArray *MId;
- struct SPropTagArray *SPropTagArray;
- struct SRowSet *SRowSet;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct StringsArray_r pNames;
+ struct PropertyTagArray_r *MId;
+ struct SPropTagArray *SPropTagArray;
+ struct SRowSet *SRowSet;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_GetProps");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
pNames.Strings = (const char **) talloc_array(mem_ctx, char **, 1);
pNames.Strings[0] = mt->mapi_ctx->session->profile->homemdb;
- MId = talloc_zero(mem_ctx, struct SPropTagArray);
+ MId = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_DNToMId(nspi_ctx, mem_ctx, &pNames, &MId);
MAPIFreeBuffer((char **)pNames.Strings);
*/
_PUBLIC_ bool mapitest_nspi_CompareMIds(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- uint32_t plResult;
- struct SPropTagArray *MIds;
- struct SRowSet *SRowSet;
- struct SPropTagArray *SPropTagArray;
- struct SPropValue *lpProp;
- struct Restriction_r Filter;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ uint32_t plResult;
+ struct PropertyTagArray_r *MIds;
+ struct SRowSet *SRowSet;
+ struct SPropTagArray *SPropTagArray;
+ struct SPropValue *lpProp;
+ struct Restriction_r Filter;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_CompareMIds");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(SPropTagArray);
*/
_PUBLIC_ bool mapitest_nspi_ModProps(struct mapitest *mt)
{
- TALLOC_CTX *mem_ctx;
- enum MAPISTATUS retval;
- struct nspi_context *nspi_ctx;
- struct SRow *pRow;
- struct SPropTagArray *pPropTags;
- struct SPropValue modProp;
- struct SPropTagArray *MIds;
- struct SRowSet *SRowSet;
- struct SPropTagArray *SPropTagArray;
- struct SPropValue *lpProp;
- struct Restriction_r Filter;
- const char *original_office_location;
- bool ret = true;
+ TALLOC_CTX *mem_ctx;
+ enum MAPISTATUS retval;
+ struct nspi_context *nspi_ctx;
+ struct SRow *pRow;
+ struct SPropTagArray *pPropTags;
+ struct SPropValue modProp;
+ struct PropertyTagArray_r *MIds;
+ struct SRowSet *SRowSet;
+ struct SPropTagArray *SPropTagArray;
+ struct SPropValue *lpProp;
+ struct Restriction_r Filter;
+ const char *original_office_location;
+ bool ret = true;
mem_ctx = talloc_named(NULL, 0, "mapitest_nspi_ModProps");
nspi_ctx = (struct nspi_context *) mt->session->nspi->ctx;
Filter.res.resProperty.lpProp = lpProp;
SRowSet = talloc_zero(mem_ctx, struct SRowSet);
- MIds = talloc_zero(mem_ctx, struct SPropTagArray);
+ MIds = talloc_zero(mem_ctx, struct PropertyTagArray_r);
retval = nspi_GetMatches(nspi_ctx, mem_ctx, SPropTagArray, &Filter, &SRowSet, &MIds);
MAPIFreeBuffer(lpProp);
MAPIFreeBuffer(SRowSet);