Read SMS from Inbox using Managed code in C# for Windows Mobile URGENT!!! RRS feed

  • Question

  • Hi All,

    I have one requirement. wherein if i get the message like "sync" i want perform some action. I used MessageInterceptor concept and it work's fine. but If the application is already open. and try to perform the other SMS feature like "lock" then i am not getting any event to the application. So to overcome this i want read the Message Inbox through code and perform the action. Please provide if have some code.

    Thanks & Regards,


    Tuesday, July 6, 2010 5:02 AM


  • Hi,

    WM platform provides MAPI to read SMS or Inbox message, it is native API, we can P/Invoke it in managed code, here is the sample:
    Pocket PC and SmartPhone 99% .NET MAPI - CodeProject


    There is a wrapper over the MAPI Inbox function in the Mobile In The Hand library (see OutlookSession.SmsAccount.Inbox in it). Though It is not free.

    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
    Thursday, July 8, 2010 8:08 AM