View Full Version : Turn off the phone part of the XDA
Anonymous
05-03-2003, 02:14 PM
I am writing an application for the XDA using eVC++ 3.0 with the Pocket PC 2002 SDK.
What I need to do is turn on/off the phone part of the XDA programatically without displaying the progress bubbles that normally appear.
I have thought about sending keydown and keyup events if I can find the correct key codes but the progress bubbles still appear.
Any thoughts?
itsme
18-03-2003, 11:50 AM
//-------------------------------------------------------------
HINSTANCE hCCoreUtlDll;
typedef void (__cdecl *PSRSFN)(int state);
PSRSFN SetRadioState;
BOOL LoadCCoreUtl()
{
hCCoreUtlDll= LoadLibrary(_T("ccoreutl.dll"));
if (hCCoreUtlDll==INVALID_HANDLE_VALUE)
return FALSE;
SetRadioState= (PSRSFN)GetProcAddress(hCCoreUtlDll, (TCHAR*)0x10);
return (SetRadioState != NULL);
}
void TurnRadioOn()
{
SetRadioState(2);
}
void TurnRadioOff()
{
SetRadioState(1);
}
From reverse engineering rsupgrade.exe.
Code not tested, but I think this is how to do it.
nick.sturrock
25-03-2003, 02:56 PM
are there other functions for getting the current radio state? presumably so. can someone publish a complete list of funtion ordinals for ccoreutl.dll? sounds like it might have some useful stuff in it.
on a related note - does anyone know where the functionality for entering the SIM pin code lives? Ideally I want to be able to programmatically turn the radio on and input the PIN code without being pestered for it.
thanks,
nick.
wacky.banana
17-04-2008, 05:54 PM
Just happen to make it to the last page of this forum. This thread is an example of what was on our minds then.....5 years ago.
WB
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.