Hi, Dmitry, thank you for your reply.
I am now try to use MAPI for this problem, and have a small question.
Assume the default profile name's "MyProfile". These are what i did:
1.IProfAdmin::AdminServices to get ServiceAdmin
2.IMsgServiceAdmin::GetMsgServiceTable to get table
3.IMAPITable::QueryRows to get all message store rows.
4.for loop to find property of PR_SERVICE_NAME_A use PpropFindProp.
If find check if it is "INTERSTOR", if it is "INTERSTOR", check the ""
propery, but the second check is failed, can you help me out with it?
This is the code snippet:
for(ULONG uLoop = 0; uLoop pStoreRows-cRows; uLoop ++)
{
lpCurProp = pStoreRows-aRow[uLoop].lpProps;
uCurValue = pStoreRows-aRow[uLoop].cValues;
lpRetStoreProp = PpropFindProp( lpCurProp, uCurValue, PR_SERVICE_NAME_A )
;
if (_CheckStringProp(lpRetStoreProp, PT_STRING8))
{
// compare the string with "INTERSTOR"
CString szServiceName(lpRetStoreProp-Value.lpszA);
if(!szServiceName.CompareNoCase("INTERSTOR"))
{
lpCurProp = pStoreRows-aRow[uLoop].lpProps;
uCurValue = pStoreRows-aRow[uLoop].cValues;
// get the message provider UID
lpRetStoreProp = PpropFindProp( lpCurProp, uCurValue,
PR_PROVIDER_UID );
if(lpRetStoreProp && PR_PROVIDER_UID == lpRetStoreProp-ulPropTag)
{// Here failed, what's going on?
}
}
}
}
I'm sure that PR_PROVIDER_UID is the exist property.
Thanks in advance.
Dmitry Streblechenko wrote:
2. I don't think there is anything you can do if you are using the Outlook
Object Model alone.
Yes, that's right, i change the object to a member of class, it is ok.
Thanks
[quoted text clipped - 9 lines]
2. There is nothing special about the Hotmail store (which is really a PST
store).
--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...ddins/200904/1