Hi, just wondering if there is any way to redirect URLs to an alternate IP address, the way you can with a hosts file in Windows?
I need to change the address WP7 resolves an activesync URL to.
I realized one registry key "HKLM\COMM\Tcpip\Hosts\" same as windows WM6.5 and windows ce, but i really don't know how to create a binary vaule for "ipaddr", i tried to use a provxml to creat or modify but the binary value is so terrible.
Related
My goal is to get the TCP data from a TCP application on the pocket pc
like data from internet explorer or active sync. I want to write a proxy
that forwards all TCP data to the application server (Web server,...).
So I have tried to replace the ws2.dll with a wrapper dll that forwards all
winsock API calls to the original ws2.dll. But when I replace the ws2.dll file
with my own and make a softreset the device hangs in boot screen and
I must do a hardreset. Could not get this to work on WM5 but it works great
on WM2003 devices.
So I have tried another thing. Have heard about API hooking and want to
try this with winsock API functions (connect, WSAConnect, send, recv,...).
After several days of investigation in some forums I have found many
informations about API hooking and API sets win WM5. But when I look
deeper there is no server process for winsock API calls. So I cannot
change the method adresses.
Another idea was to hook LoadLibrary() API function and when ws2.dll is
loaded from an application I will load my own dll and forward all calls to
the original ws2.dll. But LoadLibrary() has also no server process.
Has anybody another idea how to do this?
Thanks for any information on this.
Houser
Hi Houser!
I think the reason your original method failed on WM5 is because all system DLLs must be signed or the system will not load them.
There are several threads on this forum (sorry, can't remember precise link right now) that explain how to create\use certificates, and sign files, so just search for that.
Good luck.
Thanks levenum for your reply.
I also have thought about signing the dll but I have disabled certificate
check on the WM5 device with the Cert_SPCS.CAB file and now
my system loads every dll without asking the user.
I have written some test applications that explicite load my ws2.dll with
a different name (ws2xx.dll) and then in my ws2xx.dll I load
the org ws2.dll from \windows dir and all worked fine. I can use
any winsock function and can make TCP connects and so on.
So I think signing is not the problem, only when I do not use
the Cert_SPCS.CAB file to disable it?
Or are system file always checked at boot phase?
That would then explain the problem maybe.
Regards
Houser
I am pretty sure system files are treated separately. I once used a device with no cert ROM, which ran all programs and loaded DLLs without asking for certificate, but refused to do so for system files (MUIs).
I think you should give certificates a chance before moving on to more complicated solutions.
So I should try to sign my wrapper dll with a certificate.
So I will try to sign with the Visual Studio 2005 developer
certificate. And then I must install this certificate on my device
so that the system trusted the dll file with this certificate?
Houser
Another thing: What do you mean with MUIs?
That's correct.
There are provisioning CABs in the 2005 SDK. You just run them on your device and they insert all the test certificates.
SDK also shows how to provision devices through RAPI, but most WM5 ROMs block that option.
Also you should use the 'privileged' execution certificate to make sure you have maximum access to the system.
MUIs are duplicate system DLLs that contain resources for other languages. For example: coredll.dll.0409.mui will contain English resources for coredll.dll (409 is hex for English code page). They are used to switch interface languages both on PC windows and mobile. (Metalanguage User Interface).
P.S.
If you want, there are XML templates for provisioning CABs in the SDK, and makecert.exe that let you create your own certificate and put it on the device.
Another thing: What do you mean with MUIs?
So I have tried this:
1) Installed the SdkCerts.cab certificates on the device (copied the file on
the ppc and tap in explorer on it) A success message was displayed from
the setup process.
2) In VS2005 I have set in the project settings the cert signing to "Sample
Privileged Root for windows mobile SDK" certificate and rebuild my dll.
In the dll file properties I can see the certificate.
3) Have copied my ws2.dll file to \windows and replaced the org ws2.dll file
there, my dll loads a copy of the org ws2.dll (ws2copy.dll) that is also
in the \windows dir
4) Then the big moment: Soft reset and..... hanging again in boot screen
The installed certificates did not appear in the pocket pc certificate manager.
Do you know if they should appear there or not?
Maybe the SDK certificates are not imported correctly?
Thanks for you help!
Houser
I'm sorry my solution didn't help.
The test certificates do not show in the list (don't know why).
The way I see it there are two possibilities:
1. I was wrong about the certificates. (Though I think you may still need them)
2. There might be a problem with the copy DLL you try to load (ws2copy.dll). Is it from a good dump? Have you tried loading it from a test app? Is it signed? I think it needs to be signed to.
Sorry I can't give you advice on an alternate way. Insufficient knowledge...
It is very frustrating, I do not knwo how many
hard resets I have made in the last few weeks. :?
I have written a test app that loads my winsock dll file and
then my dll loads the copy ws2.dll file. The copy ws2.dll file
is from a platform builder 5.0 build.
These tests with my test app all worked fine, I can make TCP connects
and do all the winsock stuff like I load the org ws2.dll file directly.
I have even disabled certificate check on the device and tested
with unsigned dll and it works too.
The copy dll from PB 5.0 is not signed. may be this could
be a problem when my dll is loaded in boot time.
Do you know a way to sign the copy PB dll with the SDK certificate?
Thanks man!
Houser
Signing files (DLL, EXE, CAB) is very easy. In the SDK, there is a file called signcode.exe. It will give you a step by step wizard to sign the file. The only additional thing you will need is the certificate files themselves which should also be in the SDK.
Got it to work with signing the copy dll file and
now after soft reset my device does NOT hang. :lol:
Many thanks for your support levenum!
That is very good but now I have figured out that
I cannot make a localhost connect on a local tcp port
on the device. That has something to do with WM5
because it was working under Wm2003. Strange..very
strange.
Houser
Not sure if this has been discussed earlier but I've been searching for quite a while for the exact working procedure so I can have my cert installable through UC. I support many clients with Exchange 2003 and PDA's so this works really nice for me, of course YMMV
First you need Network 2.0 installed on your workstation, the x86 version alavaible here
Then, referring to Scott Yost's contribution on MSDB Blogs, SSLChainSaver v2 released download & install Windows Mobile SSLChainSaver
This will create a directory C:\Program Files\Microsoft SSL ChainSaver by default with no program group. I suggest installing to a easier to find folder as this will be run via a Command Prompt, I use D:\SSL myself.
Then I run a Command Prompt and change my Drive and Directory to that folder. (I'm sure that if you need this knowledge you already know how to navigate in a Dos windows)
There I type S and a tab (which, on an XP or Vista computer will autocomplete SSLChainSaver.exe. Type a space then the FQN of the server containing the cert, for instance, mail.mycompany.com. This will create a folder named mail.mycompany.com containing the cert, which we don't need. It will also create 2 files, mail.mycompany.com.wm5.xml and mail.mycompany.com.wm6.xml. Al my device are WM6.1 so I need the second one.
Rename the second file to _setup.xml.
The type makecab /d compress=off _setup.xml email.cab (or whatever you want to name the cab)
Copy the cab to your SC and input the necessary line into your SDConfig.txt if you use UC or simply run through File Explorer.
This, in addition to creating cabs to automatically Auto-provisioning Exchange mail via UC saves me a LOT of time.
Enjoy and I hope that somebody finds this useful
Excellent work! I have been looking for a good way to achieve this via UC and this works perfectly.
Kevan
So you re doing all this just to get _setup.xml made for you ? Why not see whats in it and create it yourself ?
NRGZ28 said:
So you re doing all this just to get _setup.xml made for you ? Why not see whats in it and create it yourself ?
Click to expand...
Click to collapse
OK, see what's in mine and create one then...
The whole idea is to create a cab, not an xml file... at least for me that is.
Great work! I've been looking for that - didn't know you could do this
Here's a script - just add it to your SSL Chainserver folder (default: C:\Program Files\Microsoft SSL ChainSaver) and run it - it will ask you for your web/mail-server and create the cab automatically...
Code:
@echo off
set mailserver=mail.mycompany.com
set /P mailserver=Please enter your mailserver (%mailserver%) + [ENTER]:
SSLChainSaver.exe %mailserver%
copy %mailserver%.wm6.xml _setup.xml
makecab /d compress=off _setup.xml %mailserver%.cab
echo Done! Copy %mailserver%.cab to your provisioning folder and add it to your UC (SDConfig.txt) or SASHIMI script :)
pause
Regards,
Nika.
This is great, it's exactly what I needed. I just have one question. Why make a CAB file? Don't UC and Sashimi both support provisioning XML? It seems like you should be able to save a step. And taking that one step further, couldn't you put both the certificate and the Exchange provisioning in the same XML file?
dabbith said:
This is great, it's exactly what I needed. I just have one question. Why make a CAB file? Don't UC and Sashimi both support provisioning XML? It seems like you should be able to save a step. And taking that one step further, couldn't you put both the certificate and the Exchange provisioning in the same XML file?
Click to expand...
Click to collapse
For me, it's because I rarely let the UC start as when I'm evaluating a new ROM I need it to be the way the chef made it and not as it is with my modifications. Much easier for me to just run the cab files.
dabbith said:
This is great, it's exactly what I needed. I just have one question. Why make a CAB file? Don't UC and Sashimi both support provisioning XML? It seems like you should be able to save a step. And taking that one step further, couldn't you put both the certificate and the Exchange provisioning in the same XML file?
Click to expand...
Click to collapse
Lol, hadn't checked the xml yet and see now it's a provisioning XML, thanks for the tip!
hello
i need help...
a stupid question:
how i get a FQN from a server with an Cert?
I must create the server itself?
Martie said:
hello
i need help...
a stupid question:
how i get a FQN from a server with an Cert?
I must create the server itself?
Click to expand...
Click to collapse
Hi Marty,
The FQDN is the Fully Qualified Domain Name of your machine. So whatever you type into the Address Bar of the Internet Explorer to access the machine would be the FQDN. If your Exchange Server is called "server1" it's usually "server1.domainname.com" or sometimes your Domain Admin adds "mail.domainname.com" or "exchange.domainname.com which points to the server1 machine...
Regards,
Nika.
After successfully accessing file system on magellan triton 1500 described on http://tritonforum.com/forum/viewtopic.php?f=6&t=1289 i install OziCe (pna version) on it and it's working fine, but there is big problem. In Triton system core is missing soft keyboard so there is no way to register Ozice. I researched a bit and after comparing files and registry on triton and my ipaq i found that on triton is missing file softkb.dll in windows directory and also there is no registry entry like in my ipaq HKLM\\Drivers\BuiltIn\sip\ for activation of softkeybord on system startup.
So my question is if i just copy softkb.dll to windows directory on my triton an if i add entry in registry like on ipaq would that be enough to activate soft keybord?
Also does anybody know how to make backup of triton registry. I try with TRE and regedit but option export registry on both programs is not working.
tenx...
After one day of researching:
I was able to copy softkb.dll to windows directory of my triton but was unable to add entry in registry for SIP. Because there is no keybord only way to enter something into registry is to create .reg file and import that via registry editor. I extract reg key from my ipaq and try with 3 different registry editors to import it into triton registry but without success...
Unfortunately i haven't got a clue what you are adressing to here, but maybe this suggestion might help you?
How about you install something like 'Soti PocketController', or any other tool that let's you control your device through a PC (or mac for that matter) to enable your PC-keyboard as text-input?
Hope this helps!! Good luck!
hi
i want to know is there a way to active windows mobile 6.5 built-in device encryption (for encrypt my contact and message) and local wipe (to automatically wipe my device after for example 10 wrong password enter) without any registry editor or exchange server?
i find that i can do that with a .xml file and make a .cpf file from that xml file but i also find that i can't install a .cpf file to change important registry without a digital certification!
nobody doesn't use these features?
windows mobile have local device encryption and local wipe but nobody doesn't know how to enable?!
does anyone know how can make a registry and merge that in windows mobile registry? (not use a registry editor)
Hi everyone,
Since this morning I decided to find a way to bypass inabilty to set MMS properties.
When I'll completly figure how to modify this settings I will develop an application where you will be able to put all the settings to set correctly the MMS APN.
So, I've started to investigate on my phone this morning, and I already found that.
It seems profiles are stocked in HKCU\Software\Microsoft\ShortMsg\MMS\Profiles\
Active profile is set as String in that key : HKCU\Software\Microsoft\ShortMsg\MMS\Active
Inside this Key, there is a Key for each profiles saved.
For my case, there is a key called "ORG-FR-APP". Inside this key, I can found this value :
TO-NAPID : String (Default Value = MMSAPN in my case)
TO-PROXY : String (Default Value = MMSPROXY in my case)
ADDR : String (Default value = http://mms.orange.fr in my case)
MS : DWORD (Default Value is 300).
I decide to modify value in registry trough MFG and I finally got that :
Before : http://attachments.xda-developers.com/attachment.php?attachmentid=880724&stc=1&d=1328002843
After : http://attachments.xda-developers.com/attachment.php?attachmentid=880725&stc=1&d=1328002843
The TO-NAPID and the TO-PROXY value seems to be linked to something I can see in "View config XML" but I don't know where I can edit them.
In deed, If I can edit them, the problem will be completely solved.
Here, the two screenshots which made me believe that the TO-NAPID and the TO-PROXY value are linked to something else in the file :
http://attachments.xda-developers.com/attachment.php?attachmentid=880724&stc=1&d=1328003211
http://attachments.xda-developers.com/attachment.php?attachmentid=880725&stc=1&d=1328003211
If someone know how to modify the set of values for NAPDEF and PXLOGICAL, I'm ready to do the software .
It's inside a XML File, somewhere in the phone.
I'll posting here if something new happens.
I'm gussing you've read through this already, but if not, I'm sure it could be of some help. http://msdn.microsoft.com/en-us/library/bb737506.aspx
I went trough a similar path trying registry edits through LG's MFG app and using the program DiagProvXML to try and push my own non-registry changes... but to no avail unfortunately. Hopefully, you'll be able to program something that works.
It really is too bad we can not just write to the Windows directory and simply add/edit the carrier __PROV_*.XML files directly.
Just in case anyone is tracking this thread, you can now use HeathCliff's WP7 Root Tools to copy the appropriate XML files to the windows directory and enable MMS on ROMs with Internet Sharing, that lack the correct carrier settings. Let me know if you need specifics on how to make this work.
I am interested in this. Would be useful for others coming from google in future.
yeah, would love to get those informations, too, sonus.
thanks a lot in advance
Sorry, for the delayed response. I had not tracked this thread. Have you guys tried the "LG Network Setup App"? One forum member reports that he was able to select his network from that marketplace app and enable MMS specific to his carrier. That's the easiest way to do this.
Otherwise, the general steps are
1. Unlock your phone using MFG (plenty of threads outline this, so do a search)
2. Install Heathclif''s WP7 Root Tools using "Windows Phone Device Manager", "Windows Phone Power Tools", or any way you can think of to copy the XAP install file for Heathclif's WP7 Root Tools onto your phone.
3. Copy the two relevant to your provider PROV XML files from the attached zip and the Mail Provider XML file to your windows directory using WP7 Root tools on the phone. The files are sorted by carrier_country_MCC or MNC code. There's a wikipedia page with all the providers and their respective MCC/MNC codes, I had linked to it in one of my posts on MCC a while back. If your carrier doesn't have a file, try using one of these files as a template to make a file for your carrier
4. Use MFG to select your XML file (MFG>>Engineer Menu>>Other Settings>>Set network Profiles>> Search for the MNC or MCC for your provider (it searches according to filename)
http://depositfiles.com/files/xebamjoer
http://depositfiles.com/files/a8xl7r9wz