Hey,
I recently bought a TyTN, and was wondering.. is it possible to change the mac address on it (not physically, but in wm5)?
I know it can be done in windows 2k/xp, and I've read about others doing it in VM2003.. Haven't been able to figure anything out on VM5 tho.
Anyone who might be able to help out there?
Ps. The reasons for switching the mac address, if anyone is concerned, is that it's easier to switch it, rather then having to go around contacting the administrators of the 5 networks I use during a standard month and having it added everywhere... Might have to do it, but dont want to if it can be avoided
Guess it's not possible
Well... under Windows XP it's doable with a registry entry... so why not under WinCE?
Again, this is due to Opera:
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #ffffcc; background-image: none; color: #000000; font-family: Verdana, "Lucida Grande", Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }
That's what I thought.. but unless the key is not supposed to be called "NetworkdAddress", I can't seem to figure it out :/
Tried it in every possible place I could think of placing the key in the registry without any changes (did a soft-reset after each try, hopefully enough)
Related
Hi!
I am new to tapi programming and also to c++. so i have my troubles. but it is very important for me to solve these problems, and i know the only experts who can help me are you! So please help me...
I want to get a serial connection between 2 modems (MDAII PPC Phone Edition and MDAI PPC Phone Edition with WM2003).
I built up on the sample of the dialer sample of the pocket pc sdk.
After they are connected i want to create a comm handle with the createComHandle function listet at the bottom. I think there is no error. then i try to send some char bytes by the serial functions sendto and receive these bytes on the other mobile phone. but no dataflow. what could be the problems?
if u know anything, please help me, otherwise i am getting crazy...
thanks a lot,
joachim
Code:
//**************************************************************************
BOOL CreateComHandle()
{
LPVARSTRING lpDeviceID;
LONG lgiRet;
unsigned short* err;
lpDeviceID =(VARSTRING*) malloc(sizeof(VARSTRING));
lpDeviceID->dwTotalSize = sizeof(VARSTRING);
lgiRet = lineGetID(g_CurrentLineInfo.hLine, g_dwAddID, g_hCall, LINECALLSELECT_CALL, lpDeviceID, TEXT("comm/datamodem"));
err = NULL;
switch (lgiRet)
{
case LINEERR_INVALLINEHANDLE:
err=TEXT("Invalid line handle");
break;
case LINEERR_INVALCALLSELECT:
err=TEXT("Invalid call selected");
break;
case LINEERR_NOMEM:
err=TEXT("No memory available");
break;
case LINEERR_RESOURCEUNAVAIL:
err=TEXT("The resource is unavailable");
break;
case LINEERR_INVALADDRESSID:
err=TEXT("Invalid address id");
break;
case LINEERR_INVALPOINTER:
err=TEXT("Invalid pointer");
break;
case LINEERR_OPERATIONUNAVAIL:
err=TEXT("The operation is unavailable");
break;
case LINEERR_STRUCTURETOOSMALL:
err=TEXT("The structure is too small");
break;
case LINEERR_INVALCALLHANDLE:
err=TEXT("Invalid call handle");
break;
case LINEERR_NODEVICE:
err=TEXT("No device found");
break;
case LINEERR_OPERATIONFAILED:
err=TEXT("The operation failed");
break;
case LINEERR_UNINITIALIZED:
err=TEXT("The parameter is uninitialized");
break;
}
if (err != NULL)
MessageBox(NULL,err,TEXT("Joe Error"),MB_OK);
// get the comm handle
g_hComm = *((LPHANDLE)((LPBYTE)lpDeviceID + lpDeviceID->dwStringOffset));
if (g_hComm == INVALID_HANDLE_VALUE)
{
MessageBox(NULL,TEXT("Handle Error"),TEXT("Joe Dlg"),MB_OK);
return FALSE;
}
return TRUE;
}
//**************************************************************************
[/code]
ok
thanks a lot, i solved the problems, there where a few things that weren't right.
but the most important thing which i didn't understand before was to reallocate the varstring structure (lpDeviceID), because it had to less memory allocated.
CSD Line Types
Hi.
Now that i solved these problems i have got new ones:
I want to change the CSD Line settings (v32, v34, v110,...transparent, nontransparent) out of my evc++ code.
I found another posting here with the same problem - sorry for the reposting - but does anybody have a solution for this problem now?
I thought that it would be some keys in the registry, searched for it, but couldn't find anything...
so please help me, it's very important for me....
Thanks for your help.
Joachim
What is the purpose of the linegetId function ? I'm getting confused on how to use it ... I would like to receive data from a TAPI connection but i am not too sure which port to Use.
thnks for all ur help
I guess the comm port handle is stored in the ID structure by calling
// get the comm handle
g_hComm = *((LPHANDLE)((LPBYTE)lpDeviceID + lpDeviceID->dwStringOffset));
I have seen sveral way to retrieve the comm port handle. This is one of them. It is actually very tricky. don't ask me why...
- David
By the way,
Is anyone able to use CSD transparent mode setting to send data?
How to do it?
Thanks,
- David
Indeed retrieving the Handle seems to be the hardest things to do, what other methods have you seen around??
all i heard was lineGetId but i have seen some poeple use createFile() so to tell the truth i'm even more confused
Cheers
Hi!
I've create an application that detect Gprs Connection and check how much traffic is genereted on a Smartphone WM2003 and WM5.
On WM2003 it's all right, but in WM5 the RasEnumConnections() function always return 0 with 0 connection active...
The code for detect Connection is:
DWORD isConnection = false;
RASCONN rgrc[4];
DWORD dwSize = sizeof(rgrc);
DWORD dwConn = 0;
DWORD dwREC;
dwREC = RasEnumConnections(rgrc, &dwSize, &dwConn);
if (dwREC == ERROR_SUCCESS)
{
DWORD i;
RASENTRY rasEntry;
rasEntry.dwSize = sizeof(RASENTRY);
for (i = 0; i < dwConn; i++)
{
if(!RasGetEntryProperties(NULL,
rgrcIdea.szEntryName,
&rasEntry,
&rasEntry.dwSize,
NULL,
NULL))
{
if(wcsstr(rasEntry.szLocalPhoneNumber, L"~GPRS!") != NULL)
{
isConnected = true;
break;
}
}
else{
Debug(TEXT("Error RasGetEntryProperties"));
}
}
}
else {
Debug(TEXT("Error RasEnumConnections [%d]", dwREC));
}
return isConnected;
How can I detect the Gprs Connection in native code for this goal in WM5?
Can anyone help me?
Thanks!!!
I experience the same problem on the P3300, but on the P3600, there is an application in the windows folder named datadisconnect.exe .. And i looked into it with a dissasembler... And it uses RasEnumConnections and RasHangup to disconnect.. So my question to you is... What device are you using? This might be bug of some sort.. I also see that there is a difference between the datadisconnect.exe on the p3300 and on the p3600.. so i'll look into them and see if i can find anything there...
SaSHje
Follow up
Hi .. i've looked into what the P3300 does.. and it seems like RAS isn't used at all.. When you are connected with i.e. GPRS, the connection adapter and connection name is stored in the registry under HKLM\System\State\Connection\Cellular.. The datadisconnect.exe on this device use these and the GetAdaptersInfo function from Iphlpapi.h. Based on the information from both... They call IpReleaseAddress from Iphlpapi.h .. So .. I'm gonna try to make my own datadisconnect where i do not use the info in the registry, but instead use GetInterfaceInfo from Iphlpapi.h, where i'll fill a PIP_INTERFACE_INFO structure, and based on the adapterindexmap in this structure, release the IP adress assigned to the adapter.
Hope this helps you a bit.. But .. strangely.. on the P3600, the RasHangup works.. I know we are trying to do different things here.. but the problems a similar... Ras doesn't function well ..
Hi!
Sorry to interupt this tread, but this may explane why the standard Spb GPRS Monitor does not work on the P3300. On the CD shipped with the device there is a spesial version of Spb GPRS monitor that works.
Regards
PK
No problem PK.. Thanks for letting me know.. i'll take a look at it when i have time.. FYI, using the GetInterfaceInfo and IpReleaseAddress works like a charm..
azatoth: I do not know how we can use the Iphlp API to find statistics regarding traffic etc... If you manage to solve this, please let me know.. I will do the same if i stumble over something which could resolve this issue..
Hello,
I have the same problem and try to disconnect an active GPRS connection
with IpReleaseAddress(). I have found the adapter with GetInterfaceInfo()
but IpReleaseAddress() always fails with an unknown error code.
Can you give me an example how you got this working?
Thanks.
Houser
This worked for me..
I used this link http://msdn2.microsoft.com/en-us/library/aa366056.aspx .. and f.ex this worked:
PIP_INTERFACE_INFO pInfo;
pInfo = (IP_INTERFACE_INFO *) malloc( sizeof(IP_INTERFACE_INFO) );
ULONG ulOutBufLen = sizeof(IP_INTERFACE_INFO);
DWORD dwRetVal = 0;
// Make an initial call to GetInterfaceInfo to get
// the necessary size in the ulOutBufLen variable
if ( GetInterfaceInfo(pInfo, &ulOutBufLen) == ERROR_INSUFFICIENT_BUFFER)
{
free(pInfo);
pInfo = (IP_INTERFACE_INFO *) malloc (ulOutBufLen);
}
// Make a second call to GetInterfaceInfo to get
// the actual data we need
if ((dwRetVal = GetInterfaceInfo(pInfo, &ulOutBufLen)) == NO_ERROR )
{
for (int i=0; i<pInfo->NumAdapters; i++)
{
IpReleaseAddress(&pInfo->Adapter);
}
}
free(pInfo);
Thanks. Now it works. My mistake was that I call IpReleaseAddress()
for PPP connection. For ethernet connections it works well.
Houser
Some source code from Ateksoft!
http://www.ateksoft.com/dev/flashlight.htm
My experiments with extra brightness on the Magician have shown that MS saves this state somewhere else. If you don't change this place as well the real place (GPIO) is reset every 5 seconds or so.
Damn, my current Opera installation adds this to every post:
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #ffffcc; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }
What is the difference between Hard-SPL and SSPL?
Thanks
Hard-SPL is flashed onto your device and accessible during cold-boot, SSPL is only loaded into RAM and started immediately.
Now the usual bashing: Do you actually READ THE WIKI? Use the search function? I mean, you know how to start a thread... why don't you try the other functions as well?
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #ffffcc; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; }
ok am i crazy or is there a reason this setting will not work?
holmanm said:
Change HKCU\Software\A_C\S2U2\TimeFormat from h to hh.
Copy \Program Files\S2U2\gfx\clock\0.png to \Program Files\S2U2\gfx\clock\b.png. (replace clock with folder of your clock, if different)
Click to expand...
Click to collapse
the theme in question is here
harbringer said:
Hi,
Here is my little work inspired by Greatbal Diamond Theme for Mobile Shell 2.1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Click to expand...
Click to collapse
i have tried both hh (which i guess is twelve hour) still in am time such as 9am no lead zero.
also HH still no lead zero
is there something about this theme that does not allow a lead zero?please help.
Why not post this in the S2U2 forum instead of creating new ones.
Where did you find this?
PLEASE Beginners, dont start a thread for every single question !!!!
USE YOUR BRAINS: what would happen if everyone here who has a qestions starts a thread !
This is a s2u2 skin so post it there !!!! or where you find the skin.
if you don't want to be bothered.........................don't be bothered.it took you as much brain power to type a response as it did to just not say anything.you guys kill me with this noob ****.i have respect for the guys on here but lets be serious we are all grown men with damn phones.its obvious that i tried to solve my problem for myself.i asked in the thread but the creator doesn't understand or get what i'm saying.so dude just relax or find somewhere else to practice being the man of the house.i just asked a question.
I still can't find this theme but really want it, where did you get it?
Thanks
Joe
Synned said:
I still can't find this theme but really want it, where did you get it?
Thanks
Joe
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=354111&page=17
look maybe half way down this page.
bluemetalaxe said:
USE YOUR BRAINS: what would happen if everyone here who has a qestions starts a thread !
Click to expand...
Click to collapse
sorry, i dont mean to butt in here, but this is a forum, and if you have a question, ask and it shall be answered by anybody who knows the answer.
thus a discussion, in a discussion forum.
I do also see no reason why people should be opening new threads for questions asked time and time again and share your frustration on that, but i think that was a little out of order given that the question asked is something i dont think gets asked all the time.
i personally didnt know such a skin for s2u2 existed until this thread, so well done to the thread starter for starting it i say.
joey
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #ffffcc; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; } .inlineimg { vertical-align: middle; }
joey jojo said:
sorry, i dont mean to butt in here, but this is a forum, and if you have a question, ask and it shall be answered by anybody who knows the answer.
thus a discussion, in a discussion forum.
I do also see no reason why people should be opening new threads for questions asked time and time again and share your frustration on that, but i think that was a little out of order given that the question asked is something i dont think gets asked all the time.
i personally didnt know such a skin for s2u2 existed until this thread, so well done to the thread starter for starting it i say.
joey
.wysiwyg { background-attachment: scroll; background-repeat: repeat; background-position: 0% 0%; background-color: #ffffcc; background-image: none; color: #000000; font-family: Verdana, Arial, Arial; font-style: normal; font-variant: normal; font-weight: 400; font-size: 10pt; line-height: normal } p { margin: 0px; } .inlineimg { vertical-align: middle; }
Click to expand...
Click to collapse
thanx for your input.i try to read as much as i can before asking.its just this looks very odd to me on my phone and for this clock that lead zero is needed to balance it out.hope someone knows.
Figured it out. In that registry key you altered, TimeFormat, change the two HH to hh.
hh':'mm
Like the previous poster, I didn't know this theme existed so thanks!
cant get the clock aligned in the "diamond squares"
i have editted the registry for time with hh:mm , but it still doesnt centre the clock into the squares like in the picture in the first post.
can anybody tell what to do or change please.
thanks
Give this a try:
Originally Posted by dirtred
ac thanx for such another cool app.i'm almost afraid to ask this because of the stupid question returns guys give around here but i am using the diamond theme wallpapers and clock on s2u2.its buggin the hell outta me that in the am in 12 hour time i get say if its 9am just 9 although i changed the registry time format string to hh':'mm.i tried HH':'mm as well just to get a lead zero but in am nothing but single 9 instead of 09.is there anything i could have set on my device or another way i may be able to correct this by chance?sorry to bother you with simple things like this.
Originally Posted by A_C
The leading zero is stored as b.png, not 0.png. So, under you clock files folder, copy the 0.png to b.png, and it should work.
I had the same Problem.
I copied 0.png to b.png and changed the reg-key for the timeformat to hh':'mm.
Now it works. Don't forget to restart ilock2 for the changes to take effect.
gundalbert said:
...I copied 0.png to b.png and changed the reg-key for the timeformat to hh':'mm...
Click to expand...
Click to collapse
I don't understand...these are files and not folder locations. How can you say copy 0.png to b.png? There's a 0.png file in \clock\ folder and a b.png in \clockH\ folder and even if you copy from one location its not going to overwrite the destination file... and there is a already a 0.png file in the clockH\ folder...