PDA

View Full Version : Wake up an application with SMS


Anonymous
11th February 2003, 10:40 AM
Is there a function which allows to wake up the application when a SMS is arrived?

Thank you for your help.

Godzilla

martinlong1978
11th February 2003, 11:20 AM
I suppose if you can work out the schema of the databases, then you could set a notify on the db. I've tried using the MAPI notify functions (these dont seem to be documented by MS), but they don't work out of process, so, it seems you have to use the hard way.

jvd
21st February 2003, 09:31 PM
The ugly way is to replace the SMSHandler function - it starts up from \Windows\Startup. You will have to implement all it's functionality - which means that you have accept SMS messages and then put them into the SMS Inbox.

belial
3rd April 2003, 06:12 AM
I suppose if you can work out the schema of the databases, then you could set a notify on the db.

If you want to monitor the database for a received SMS, you need to check the pmailFolders database first. The record with property 0x3001001f being the string "SMS".

Then look at property 0x80060041 (A BLOB), this consists of a bunch of DWORD values, the second DWORD is the CEOID of the Inbox of the SMS.

Then, still in the pmailFolders database, look at the record, whos CEOID you have just determined, and it has a property 0x8003001f. That is the name of the database to which incoming SMS's will go. it wil be called something like fldr30025ea.

You can then set up a notiifcation on that database.

You should probably have a notify on pmailFolders as well, for the situation where they have never received a SMS, and the 0x8003001f property has no value yet.

..Chuck..

mohitsapru
6th February 2010, 04:40 PM
Is there a function which allows to wake up the application when a SMS is arrived?

Thank you for your help.

Godzilla

I am a bit confused by the replies... is it really that hard... check messageinterceptor (http://msdn.microsoft.com/en-us/library/bb932385.aspx)
or may be i am missing something:confused: