SMS interceptor in plain c++ and 8-Bit Coding - Windows Mobile Development and Hacking General

Hi,
I'm looking for a possibility to intercept incoming SMS on Windows Mobile (5.0) devices. I've already found some examples for managed code, but nothing for plain c++ programs (I'm using MS Visual Studio 2005 for developing the c++ code).
Could anyone at least give me a hint or even post some code on how to start solving my problem?
Furthermore, incoming SMS will either be 7-Bit coded or 8-Bit coded. Is there anything special to consider when decoding the messages, or can the coding scheme be found in the header at all and decoding is a straight forward process?
Thanks in advance,
Günther

ma_gu said:
Hi,
I'm looking for a possibility to intercept incoming SMS on Windows Mobile (5.0) devices. I've already found some examples for managed code, but nothing for plain c++ programs (I'm using MS Visual Studio 2005 for developing the c++ code).
Could anyone at least give me a hint or even post some code on how to start solving my problem?
Furthermore, incoming SMS will either be 7-Bit coded or 8-Bit coded. Is there anything special to consider when decoding the messages, or can the coding scheme be found in the header at all and decoding is a straight forward process?
Thanks in advance,
Günther
Click to expand...
Click to collapse
Implement IMailRuleClient

Look in the SDK for the MapiRule example. You will most likely find it at:
c:\Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Samples\CPP\Win32\Mapirule
Ø

Related

DLL Projects

Hi all,
Generaly, I am Symbian programmer but i will have a look at Pocket PC side... so I am not bloody beginner :wink:
Jep.. I wrote/clicked a C# application with .Net 2003 (very comfortably!!). I saw fast that I have to use C++ to reach interesting APIs.
I know its possible to call (C++) DLL from C# so I can let the frontend in easy C# and can use C++ to get more functionality.
Other than for C#, I couldn't find a "Smart Device" template for C++ in .Net 2003! Someone can tell me, which kind of template I have to use for programming a PocketPC C++ DLL? Is it in .Net 2005?
Thanks a lot!
BR eidelen
Hi,
I thin VS.NET 2003 can only produce managed and x86 native code, so writing for the arm platform was not build in. Your solution would be to use Embedded Visual C++4 which is available free from Microsoft, or to answer your second question I *think* VS.NET 2005 does include the ability to write unmanaged code for smart devices.
Paul
Hi Paul,
Thank for your fast answer! I found it in ".Net 2005" and first DLL-prototypes running!
Now I have some other problems concerning callbacks from native unmanaged DLLs, but I will create a new topic about it.
Thanks a lot!
BR Adrian

How to develop an interface software for Universal

Dear All,
I currently have a genetic algorithm which is coded in C,C++,VB,Java and Fortran. I am running a DAQ (data acquisition software) which captures the vibration signals and saves it as a txt doc. What i would like to do is then take this data and post-process it using the genetic algorithm. How can i implement this using my Universal? Somesort of an interface software that i can download to my Universal so that it then imports the .txt files and runs the neccessary sequences and displays the results.
Any advise is greatly appreciated,
with my best regards,
Ravi
looking for a IDE to developer such an application
or a compiler for the pocketpc
if first you can get embedded visual studio or
just visual studio 2003 or 2005 if you want c#
if you want a compiler for the pocketpc you can get
a c# compiler for pocketpc
or a c++ compiler ggc
Thanks for the input
Hi Rudegar,
Once again...you have come to my aid : ) Thanks alot for the suggestions. I will check up on it. Will give you a shout if i am unclear about it....hope its ok with you..
Once again many thanks for your suggestions
regards,
Ravi

Reading the registry with Visual Studio 2003

I'm developing a small application for my HTC Wizard, which I'm programming with Visual Studio 2003.
I need to open the shell application for M3U files, which I've tracked down to HKCR\M3UFile\Shell\Open\Command... but now I can't figure out how to either read that key to open the relevant player, or to execute the m3u file directly.
Because I'm using VS2003, I don't have access to system.win32 with the compact framework, so what techniques have others of you used to read or write to the registry?
Also, just as a side note, how do you find the current path?
Thanks,
Jon
There is no real concept of current path in CE. If you want to know the path your EXE is in, use GetModuleHandle(NULL) -- it'll return the fully-qualified path name of that process's EXE, from which you can parse out a path.
I'd advise against using the compact framework; .Net is a loser on PPCs as it just slows things down, taking up extra memory & cycles on a platform where both are in short supply. Use the real Windows APIs instead -- i.e. call RegCreateKeyEx/RegSetValueEx.
And if you choose to use Win32 API you can just call ShellExecuteEx()
and not mess with the registry.
RegQueryValueEx is what you need. Just set the appropriate type and buffer.
V
I'm always willing to learn new stuff... are there any good resources on programming for PPC without using .net?
I know there's EVC++, but I've installed it, and now I don't know what to do with it!
Regards,
Jon
JonTheNiceGuy said:
I'm always willing to learn new stuff... are there any good resources on programming for PPC without using .net?
I know there's EVC++, but I've installed it, and now I don't know what to do with it!
Regards,
Jon
Click to expand...
Click to collapse
You can either use EVC++4, which is free but has an aged, not-so-standard C++ compiler (since it based on VC++6...but it only means a few quirks), or you can use Visual Studio 2005 which is supposed to replace EVC.
Jon, not to state the obvious, but there are many c++ tutorials for the PPC on the interweb.
What kind of experience do you have?
V
I have no prior experience with C++ - I bought the C++ For Dummies book in a charity shop a month or so ago, but it seems to refer to software that isn't available any more!
My core experience is with PHP, and recently I've been more interested in VB.NET for small apps at work, but most of what I want to do is with Windows Mobile - for which, all I have is Visual Studio 2003, and my co. won't fund me buying VS2005 as I got it for an old project that I still maintain, and anything new I need to write for work I can do with VS2005 Express...
That said, I'm not afraid of learning a new language, especially something as powerful as C++.
C++ for dummies is excellent, the best I've come across so far.
Have a read through this:
http://forum.xda-developers.com/viewtopic.php?p=209136#209136
I'm currently unlearning and then relearning my c++ - one thing I've learnt coming from other languages - c++ requires discipline. It's not about shortcuts, you build up from the basics and keep going steadily. But you need to be logical, and prepared to put in the effort. So discipline - it's been a long time since I've had to think about that!
V

newbie: creating appl. for xda pocket pc 2002

hello,
glad that i found this forum
new user of an xda Wallaby, i got a few questions,i would be happy if someone could help me. so sorry again for my boring questions.
is the pocket pc software separated from the phone software ? possible to get into the phone software?
i have little experience with basic and c. which development kit is okay , i saw Visual C++ for CE but thats a big cake for me, i would shot me in this, but only if this is the right thing. i look for a language with a phone software library, (and sorry for my bad english)
Thank You
edlin
Welcome to the forum.
First of, please don't worry about language here. This is a global forum and we have people from all over the world here.
Second, do you have any experience in programing for desktop windows?
Programing for Windows Mobile (it is actually a bit different from clean Windows CE) is basically Win32 programing so you need to familiarise yourself with that.
Now, the thing is that Pocket PC 2002 i a bit of an outdated system. Forunately, it is still supported.
What you need is a collection of free tools from Microsoft which you can download here. You also need Pocket PC 2002 SDK.
This collection includes 2 compilers eMbedded Visual basic and eMbedded Visual C++. I recommend using C++ as it is more powerful and doesn't need that pesky run time support VB uses. If you have any experience with Visual Studio 6 you will find the tools easy to get used to.
As for the 'phone software' it is part of windows, but using it involves more advance programing. First of you need to know how to use Win32 API. You can find documentation on TAPI (Telephony API) and RIL (Radio Layer Interface) in MSDN.
Good luck!
hello levenum,
thank you for your "Welcome"and Your helpful posting.
i first thought that it would perhaps be easier to go with an earlier version like CE 3, but then i have more troubles with cpu specific code?
i only tasted borland c 2.0 for dos and boland c++ 5.i saw a developers interface from a friend, Visual C++5, with Extension for Writing CE Applications,
I followed Your Download-Links, could not download Pocket PC 2002 SDK cause WGA Plugin failed i surf with a mac. i will find a solution )
so i will think on your words "First of you need to know how to use Win32 API" and step into Visual C++ first, thats a live step.
Thanks for Your Helpful Hints.
Greetings,
edlin

Application programming for HTP P3300 (ARTEMIS) and a few questions

As I'm new in this forum: Hi everybody!
I have been programming Windows CE-based devices for many years, but no experience yet with the HTC ARTEMIS (P3300). Therefore, I've a few questions and hope to get answers from this forum:
- I assume, it is possible to program visual-C++ based applications for the programme. SDK for Windows Mobile should be available at Microsoft. Is that correct?
All further questions are based on the assumption that visual-C++ (or embedded VC) is used for application development.
1. Is it possible to direclty receive incoming Short Messages (SMS) via the application? (Any keyword on how this works would also be welcome)
2. Is it possible to query the battery status from the device?
3. Can the GSM module easily be accessed and can Cell-IDs or carrier IDs be read from the device? (In particular, I want to identify the home country of the current mobile carrier) - If yes, how does it work?
4. Is it possible to restrict the appearance of the ARTEMIS. I.e., the user should only be able to access "my" application and mobile phone (voice) features. All other applications and system functions shall be hidden to the user.
Thanks in advance and kind regards,
ma_gu
yeah the stk can be downloaded and accessed from visual studio
1. i would asume so even if it had to be don with a dll hook
2. yeah many 3th party applications can display it asume there is an api call to get it
3. yeah there is an api forget the name searching in this forum should give some hits
4. yeah but if they hardreset or reflash the device it would be more troublesome
Hi Rudegar,
thanks for your fast reply. That sounds good and I think, I'll be able to find the regarding API calls (anyway, if somebody could provide some keywords, it would be very welcome).
But I have never restricted the appearance of any Windows-CE based device (question #4). How can this be done? At the beginning, I assumed that this needs rebuilding of the operating system via a system builder, but that's obviously not the case. Can you give me some hints on how to do this?
Kind regards,
ma_gu
http://forum.xda-developers.com/showthread.php?t=256646&highlight=programming
the api is called ril
depend on who you wanna develop really
1 option is making pure arm code (kinda skipping the ce) using gcc compiler for arm
2 option is the high lvl c# .net or c++ .net path but it's not that fast and dont have as much os access as pure win32 stk and even microMFC
3 option microMFC old ms class lib for c++ oop the granddad of .net you might say
4 pure win32 stk you handle the msg loop and everything more work but more power where many developrs who do today items and programs end up
if you can live with .net it's the easy path
if you want more then starting with microMFC and moving on to pure win32stk is prob the thing
java is not that well supported by wm imho
oooh yeah and you dont use platform builders and stuff like that
unless you are building roms from scratch and got access to all drivers for spc devices
you start a new project in embedded visual stuio or visual stuio 200X
and pick your path as in .net or the likes
and then you can debug using a simulator or directly on the device
it use activesync to get the exe there
otherwise you can normaly activesync the exe file to your device and run it directly
or copy it to a sd card and run it from there

Categories

Resources