none
MAPI检测彩信有时会失败有时成功,不知道怎么回事 RRS feed

  • 问题

  • MAPI检测接收到的彩信有时会失败有时成功,不知道怎么回事?

    SizedSPropTagArray(1, sptaEmail)   = { 1, PR_SENDER_EMAIL_ADDRESS};
    hr = pMsg->GetProps((SPropTagArray *) &sptaEmail,

                            MAPI_UNICODE,

                            &cValues,

                            &pspvEmail);



        if (FAILED(hr)||pspvEmail->Value.err<0) {

            RETAILMSG(TRUE, (TEXT("Couldn't get the sender's address!\r\n")));
          

            goto Exit;

        }
    有时收不到号码。不知道有没有高手有可以拦截MMS的代码? 谢谢。
    2010年2月24日 10:13

答案

全部回复

  • hi guys:
       Does anybody know how to dectect the incoming mms? i used mapi before. but it failed sometime:

    SizedSPropTagArray(1, sptaEmail)   = { 1, PR_SENDER_EMAIL_ADDRESS};
    hr = pMsg->GetProps((SPropTagArray *) &sptaEmail,

                            MAPI_UNICODE,

                            &cValues,

                            &pspvEmail);



        if (FAILED(hr)||pspvEmail->Value.err<0) {

            RETAILMSG(TRUE, (TEXT("Couldn't get the sender's address!\r\n")));
          

            goto Exit;

        }
    2010年2月25日 2:58
  • Hi anyjoy,

    You can use CEMAPI, which implement IMAPIAdviseSink that listens to any events occurred to a mail store.  Please check whether you open proper mms message store.

    Here is a sample:
    http://social.msdn.microsoft.com/forums/en-US/vssmartdevicesnative/thread/10cdc5a0-496f-4c3f-81cf-c05994a5e171/

    If this is not the case, please provide detailed code and exact question, you can't detect incoming mms or can't get sender address?


    Best regards,
    Guang-Ming Bian - MSFT
    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    2010年3月1日 10:19
    版主
  • See if this helps
    http://social.msdn.microsoft.com/Forums/en/vssmartdevicesnative/thread/fbd02e04-0fb4-4b56-9419-58bea3303a74
    2010年3月2日 8:14