Help with hLineApp lineInitializeEx - Windows Mobile Development and Hacking General

Hi
I'v been tyring to get my m3100 (WM5.0) to make a data connection for the past couple of days and eventually have finally sought help.
I have this bit of code
ZeroMemory(&m_LIParams,sizeof(LINEINITIALIZEEXPARAMS));
m_LIParams.dwTotalSize = sizeof(LINEINITIALIZEEXPARAMS);
m_LIParams.dwOptions = LINEINITIALIZEEXOPTION_USEEVENT;
while ( lRet!=0)
{
lRet = lineInitializeEx(
&m_hLineApp,
AfxGetInstanceHandle(),
NULL,
AfxGetAppName(),
&dwNumDevs,
&dwTAPIVer,
&m_LIParams)
Click to expand...
Click to collapse
lRet returns 0 and dwNumDevs = 14, but m_hLineApp is always 0. I set up a watch on the and is always says unused. I thought this would contain a handle usually not zero? I've have this declared HLINEAPP m_hLineApp;
Anyone got any idea's
Thanks for any help
Taff
PS Does anyone know of a tapi browser for wM5

Related

Source code for GPRS measurement using ril.h?

Does anybody have an easy example using RILL to see GPRS band strength.
Thanks.
I include some code I developed for this. However the calibration for this is for XDA I. For XDA II this goes too high values.
If you want to have a hack, look at:
http://forum.xda-developers.com/viewtopic.php?p=11643&highlight=#11643
I had a quick look at the xda-developers ril API, and I think this now passes the max and min possible signal strength, so it would be accurate on any device. Maybe somebody else can confirm this.
Therefore, my function to return a percentage should be something like:
static double dValue;
dValue = (double)data->SignalQuality;
dValue -= dLo;
dValue /= (dHi - dLo);
dValue *= 100;
m_dwSigQuality = (DWORD)dValue;
Hope this is of some use, sorry it's not complete.
Ben.
I have seen the topic you say before I post this
The problem is that I don't know how to use the info. that comes with the post you say.
If you look at the work completed by the xda-developers, they provided a program which shows how RIL works. Their example, last time I looked, shows how to start RIL, and listened for incomming SMS messages. To start with, find this code and add the rill calls to your program.
Find the function called 'ResultCallback'. This is called by RIL when something happens which your program may want to know about. Add to this the code I posted, starting:
if (hrCmdID == m_dwSigQualityID) {
From your own program, you now call my function containing:
m_dwSigQualityID = RIL_GetSignalQuality(g_hRil);
If this works, this will return the percentage signal strength.
Although as I said, this works well on XDA I, but needs a re-calibration for XDA II and more recent work on RIL.
Ben.
It works!
If the GPRS is connected it returns 69%, but if GPRS is not connected it returns a GSM value.
Any idea of how to make an easy dll to use this value in other program?
Thanks.
Very glad it works! Sorry about the 69%. This is fixed with the XDA II.
As far as an easy .dll, I don't know. (Or a nice easy class) Somebody here does I am sure....
Ben
Can you please attach a working ResultCallback code for the signal stregth?
I get 603% on my XDA2...
I think i did something wrong.
Thanks, Patrick
Hi,
benclewett said:
If you look at the work completed by the xda-developers, they provided a program which shows how RIL works. Their example, last time I looked, shows how to start RIL, and listened for incomming SMS messages. To start with, find this code and add the rill calls to your program.
Click to expand...
Click to collapse
Can anyone tell me where this is please?
Also, does anyone have any code for returning gprs traffic usage? - I want to report the amount of data used in the current session and also in the current month.
Thanks!
--ian

How to access writing sms with another programm

Hello!!
First of all sorry for my bad english...
I'm trying to create a programm which writes a given text in a sms if i'm pushing somewhere on the touchscreen...
The programm should send the sms automatically to a given number.
My problem is how to access sms with another programm?!
Hope you understood just a little bit, if not please ask me!!
I need your help, because this programm is for university... (with Csharp)
thanks....
You mean, how do you write an SMS in code? Or actually access the SMS app indirectly?
What language? C#? .net or not net?
V
If I understand you correctly, this should work for you. Of course you will have to modify it a little so that it fits your personals needs:
Code:
private void Form1_Click(object sender, EventArgs e)
{
SmsMessage msg = new SmsMessage();
msg.Body = "Hello!";
msg.To.Add(new Recipient("Somebody", "+48123456789"));
msg.RequestDeliveryReport = true;
msg.Send();
}
PS. Have you at least used search option in WM SDK ?
Hey!!
First of all, thanks for your fast replies!!!
I have used search-function but didnt find anything...
My Programm should work like this:
U got three Buttons on the screen:
1. 10 min
2. 20 min
3. 30 min
If u click one of these buttons the programm should send a sms with the given text to a given number! By itself!!!
Thanks you VERY VERY VERY much, for your code, I'll try it this evening!!
Driftdriver

Save Battery Using These Regisrty Hacks

I Used These Hacks Wen I Had My Dash Im Using It ON THe Shadow And I Have Great Results ps I Take No Responsibility For Any damage And I Did Not Make These I Found Them
1. HKLM\Comm\AsyncMac1\Parms\DisablePowerManagement
Change Dword value from 1 (default) to 0
2. HKLMComm\Irsir1\Parms\DisablePowerManagement
Change Dword value from 1 (default) to 0 i cant seem to find this on my dash or shadow
3. HKLM\Comm\PPTP1\Parms\DisablePowerManagement
Change Dword value from 1 (default) to 0
4. HKLM\Comm\L2TP1\Parms\DisablePowerManagement
Change Dword value from 1 (default) to 0
TIP 3
REGEDIT4
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Cl ass\SDMemory_Class]
"DisablePowerManagement" = dword : 00000000
Sir Charles!!
I applied these yesterday and I believ you have something....but I wonder if it's catchy. LOL
I left my connections on all night (BT/wifi), talked for 90 minutes to my friends and family, listened to music on pocket player for an hour and a half and now, 24 hours later I still have 50% battery.
I usually don't activate my connections until I use them and typically don't call too many people on this phone (I have a sucky corporate phone), but it seems all this added activity has not had anywhere near the impact I normally would expect.
I'll spread the word and see if more folks won't give this a try on their Shadows.
Meanwhile....Thanks!!
Np
Np Mr Scott
I took the liberty of creating a cab for these great registry hacks.
Note: I have excluded:
Code:
TIP 3
REGEDIT4
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Cl ass\SDMemory_Class]
"DisablePowerManagement" = dword : 00000000
What are the side effects??
tissle said:
What are the side effects??
Click to expand...
Click to collapse
So far I haven't found any, the fix is noticeable on saving battery life though.
Yes There Are No Side Effects And THanks 4 Making A Cab For Users Who Dont Wanna Mess With The Registry And Making It On Users Who DOnt Mind
Alright, I just did these edits with a fully charged battery and rebooted.
Let's see how long my phone lasts.
dilfatx said:
I took the liberty of creating a cab for these great registry hacks.
Note: I have excluded:
Code:
TIP 3
REGEDIT4
[HKEY_LOCAL_MACHINE\Drivers\SDCARD\ClientDrivers\Cl ass\SDMemory_Class]
"DisablePowerManagement" = dword : 00000000
Click to expand...
Click to collapse
Hi
Do you think this will work on my Universal?
Thanks in advance
orb3000 said:
Hi
Do you think this will work on my Universal?
Thanks in advance
Click to expand...
Click to collapse
I doubt it.. the universal runs on pocketpc and this cab was designed for smartphone windows os.
dilfatx said:
I doubt it.. the universal runs on pocketpc and this cab was designed for smartphone windows os.
Click to expand...
Click to collapse
Well I have installed already and testing, post results later
Thanks,
I downloaded the .cab and attempted to install. The install was unsuccessful- anyone know why that might be? Could my registry be locked? I am using WM6.1_V1b_by_Erofich.
So, no feedback yet ?
What kind of feedback are you looking for? I use it, I recommend it. This should be the first thing you install on your shadow.
Hmm ok, so does it work for diamond ?
Um, no... that's why it's posted in the Shadow/Juno forum and not the Diamond forum.
Actually, all of the registry keys are present in both the touchscreen and non-touchscreen editions of WM 6.1.
So the CAB installer may not work, but the actual registry fix should.
I am trying this on my Wizard and will edit later to post how it works out.
#edit to add#
Works great on both my Wizard and my Juno.
I think that these should work for any WM 6.x build.
Ok thank's, i will try these settings !
@tonyc0642 : You're really smart ! Didn't realize that i'm on Juno (Wm6.x) Forum...Really SMART !
Dr.Tenma said:
@tonyc0642 : You're really smart ! Didn't realize that i'm on Juno (Wm6.x) Forum...Really SMART !
Click to expand...
Click to collapse
I'm bored, soo...
tissle said:
What are the side effects??
Click to expand...
Click to collapse
I'm feeling bored, so i'll go in to what these keys do.
Basically all of these are power management keys, which allows the phone to turn devices/connections off when not in use.
If you want, you can take my word for it, otherwise you can use the links.
AsyncMac is The NDISWAN implementation in Windows Embedded CE
IrSIR = Infrared Serial Driver
PPTP and L2TP are VPN protocols.

HD2 google search in German - 02 UK

hello
I have an HD2. When I search using the browser magnified glass the results I get are from Google Germany!!
Do i have have the wrong mobile web settings or something? (standard ones installed from 1.66 software)
Anyone else have this issue?
Cheers
yes, you aren't alone there, there are a few threads about it, but it looks as if it is coded into the net tab,theres certainly no registry tweak to fix it (well not found one in a number of weeks looking and theres no threads that come to a satisfactory ending I could find)
(thing is, I changed rom and n now I get google.com, so its no longer s problemhehe)
best work around seems to be to have a link to search page of choice as a quick link.
sometimes i get english sometimes get german im also on uk o2 , mostly get german when ever i try to show someone its always english lol
i think the ip range used sometimes come back as german so you get redirected to the german version of google
Yea, and o2 is a german company, tho i think i read of someone on t mob also resolving their ip to germany.
Strange that since I moved to a cooked rom i now always get google.com (though i still cant stop it going for mobile google, which i hate)
samsamuel said:
Yea, and o2 is a german company, tho i think i read of someone on t mob also resolving their ip to germany.
Strange that since I moved to a cooked rom i now always get google.com (though i still cant stop it going for mobile google, which i hate)
Click to expand...
Click to collapse
The searchURL in the manila tab is coded into the file 62ece951.manila.
Here we find:
BuildSearchEngineList = function()
PrintLog("[internetportal::BuildSearchEngineList] Function entry point")
g_tblSearchEngine.CMCC = {strSearchTitle = Locale:GetString("IDS_INTERNET_CMCCSEARCH"), strSearchURL = "http://wap.139.com/search.do?q=%s&category=downloadable|web|browseable&tid=2123,2124,2125,2126&fr=portalcustom2", bSearchWithoutEncode = false}
g_tblSearchEngine.Google = {strSearchTitle = Locale:GetString("IDS_INTERNET_GOOGLESEARCH"), strSearchURL = "http://www.google.com/m/search?client=ms-htc&q=%s&channel=sbi", bSearchWithoutEncode = false}
and
Main = function()
PrintLog("[internetportal::Main] Function entry point")
if _config_os == "windowsmobile" then
_request.NavigateOutTo:connect(OnNavigateOut)
_request.NavigateInFrom:connect(OnNavigateIn)
end
objs3D = {}
objs3D[1] = obj
setOffScreen()
if g_bEnableSearchChange == true then
BuildSearchEngineList()
if g_strCurrentSearchEngine == "" then
g_strCurrentSearchEngine = "CMCC"
g_strSearchURL = g_tblSearchEngine.CMCC.strSearchURL
g_strSearchTitle = g_tblSearchEngine.CMCC.strSearchTitle
g_bSearchWithoutEncode = g_tblSearchEngine.CMCC.bSearchWithoutEncode
else
g_strSearchURL = g_tblSearchEngine[g_strCurrentSearchEngine].strSearchURL
g_strSearchTitle = g_tblSearchEngine[g_strCurrentSearchEngine].strSearchTitle
g_bSearchWithoutEncode = g_tblSearchEngine[g_strCurrentSearchEngine].bSearchWithoutEncode
end
elseif g_strSearchURL == "" then
g_strSearchURL = "http://www.google.com/m/search?client=ms-htc&q=%s&channel=sbi"
end
if g_strSearchTitle == "" then
g_strSearchTitle = Locale:GetString("IDS_INTERNET_GOOGLESEARCH")
Grtz,
Degake
Ooo nice find, thanks.
samsamuel said:
Ooo nice find, thanks.
Click to expand...
Click to collapse
No problem mate
If you try to edit the file, just don't forget to take a backup first
Grtz,
Degake
degake said:
No problem mate
If you try to edit the file, just don't forget to take a backup first
Grtz,
Degake
Click to expand...
Click to collapse
heh, just reading up on editing manila files. Any tip for an editor?
samsamuel said:
heh, just reading up on editing manila files. Any tip for an editor?
Click to expand...
Click to collapse
Just use m9 editor to decompile the lua script
And then just use any text editor
Grtz,
Degake
degake said:
Just use m9 editor to decompile the lua script
And then just use any text editor
Grtz,
Degake
Click to expand...
Click to collapse
Yea, just installed m9editor 3.3.0.1, but i'm getting 'not a mode9 file'.
Heading AFK now tho, so bookmarked myself a little light reading for tomorrow.
Thanks

[Q] speech to call to number apps???

I want to create application that can call when some of voice pattern get recognize or way to recongnize spoken word or voice like eg:-when i speak "hello" then it recognize the hello word then it call to particular number mention.......
i have looked through lots of code but i counldn't find it
aruzmeister said:
I want to create application that can call when some of voice pattern get recognize or way to recongnize spoken word or voice like eg:-when i speak "hello" then it recognize the hello word then it call to particular number mention.......
i have looked through lots of code but i counldn't find it
Click to expand...
Click to collapse
You haven't looked hard enough. Start here:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()
.getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something!");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
int noOfMatches = 10;
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, noOfMatches);
startActivityForResult(intent, XenoAmp.SPEECH_RECOG_RC);
Yes i have gone through code but i want to integrate process that when i speak hello or some word then suddenly the application trigger automatic message to particular number i have saved.I am really curious about these to learn from you i have gone through some of code present here please look on it...it's final year project plz help it
github.com/gmilette/Say-the-Magic-Word
zoo.cs.yale.edu/classes/cs434/cs434-2012-fall/code/eclipse-ws/com.example.android.apis.ApiDemos/src/com/example/android/apis/app/VoiceRecognition.java
i need your help i just beginner trying to learn android programmin how can i trigger the application to automate work.....
ssuukk said:
You haven't looked hard enough. Start here:
Intent intent = new Intent(RecognizerIntent.ACTION_RECOGNIZE_SPEECH);
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE, "en-US");
intent.putExtra(RecognizerIntent.EXTRA_CALLING_PACKAGE, getClass()
.getPackage().getName());
intent.putExtra(RecognizerIntent.EXTRA_PROMPT, "Say something!");
intent.putExtra(RecognizerIntent.EXTRA_LANGUAGE_MODEL,
RecognizerIntent.LANGUAGE_MODEL_FREE_FORM);
int noOfMatches = 10;
intent.putExtra(RecognizerIntent.EXTRA_MAX_RESULTS, noOfMatches);
startActivityForResult(intent, XenoAmp.SPEECH_RECOG_RC);
Click to expand...
Click to collapse

Categories

Resources