[Networking] Tarquin:
Hi

I wrote this on our forum a while back, maybe it's of use to somebody out there.

This post decribes two hacks, first, how to change the Client RDP port that you want to connect with (this hack can also be found elsewhere in these forums). However, if you want to start a single application without having a TS desktop, i.e., Outlook, then you can configure WM5 to do this. I find launching a single application more usable than navigating around the TS desktop and i just create different .reg files for each application i want to use. In the example below, i show how to configure WM5 for accessing a Jetro CockpIT server (Citrix alternative) but it could easily be used to point to an application path rather than %cockpit%.

Regards

Tark

As I am sure you are aware, Microsoft's WM5 ships with a simple RDP client which by default only allows configuration of the IP address or server name of the terminal server that you wish to connect to, oh, and asks if you would like to configure "full screen".

Well thats nice, thanks Microsoft, but not very helpful for us when we need a bit more flexibility, say to connect to our Jetro CockpIT server on port 13443 with a startup program of %COCKPIT%.

Luckily we can still add entries to the WM5 registry. Please remember the usual warnings about changing registry settings, we can't be responsible for any problems these changes may make, so you do this at your own risk !

First we need to change the port number from the 3389 default to 13443.

If you don't already have one, install a registry editor onto your WM5 device (we use the editor included in Explorer 2005 from www.resco.net)

1. Browse to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

2. Create a new DWORD value named "Server Port" (without quotes) and enter a decimal value of 13443.

Now we need to add another entry for our startup program, %COCKPIT%.

This is a bit trickier as we need to add a binary value for this registry entry.

If you take a look at this table http://www.neurophys.wisc.edu/www/comp/docs/ascii.html you will see for example that under VALUE the percent (%) entry has a HEX value of 25 and that the HEX value for O is 4F.

Okay, so using the table we can build up our registry value for %COCKPIT% and it ends up like this:

25 00 43 00 4F 00 43 00 4B 00 50 00 49 00 54 00 25 00 00 00 00 00 00 00

You'll notice that there are 00 values between each letter value, these values are for a "." and are a requirement. Also, there are trailing 00's, these make the entire value up to 24 components (count them) or a 24bit entry.

For longer strings, e.g. "C:\Program Files\Microsoft\Office\Outlook.exe", just fill in the details in the same way, but pad out with 00's until you reach the next Bit point, e.g. 36Bit, 48bit or 56Bit etc. Btw, I have left out the trailing 00's with some applications and it works okay, some others, it doesn't.

1. Browse to HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default

2. Create a new BINARY value named "Alternate Shell" (without quotes) and enter the value 25 00 43 00 4F 00 43 00 4B 00 50 00 49 00 54 00 25 00 00 00 00 00 00 00. As you do this you will see the word %.C.O.C.K.P.I.T.% appear as you enter the values, use this info to spot any errors.

3. Soft reset your device and start your Jetro CockpIT session !

________________

www.tungstenblue.com