Jump to content

IMailRuleClient for SMS catching


Recommended Posts

Posted

I have tried the example from the SDK (mapirule), but it did not work.

I never made a COM object, so that is why I need a little help with the steps required. From what I have seen, the steps are: make a class that implements the IMailRuleClient interface, put it in a dll, register the dll, make the registry key in HKEY.../Inbox/.../Rules and that's it.

There are probably lots of small things that I don`t know about, but this is some that I think of and I need some opinions:

- the mapirule example dll did not exported the methods of the class that implemented IMailRuleClient,only DllRegister and DllUnregister methods. Can that be a reason why it did not work?

- I did not have regsvr32 on my phone, so I manually created 2 keys in th registry: one with the CLSID in HKEY.../CLSID and one in HKEY.../Inbox/.../Rules.. Is that enough to register the dll ?

- I looked at the processes running, and of course that none used the mapirule.dll So I developed my own application that used the dll (only those methods exported: DllRegister and DllUnregister). So,in order to use the dll, do I need an application, or the IMailRuleClient object is created when a SMS arives?

Thank you for your time...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.