Archive for the ‘Tools’ Category.
November 20, 2010, 08:51
The famous rdesktop running natively on windows ce and windows mobile
Intro and Background
Some times ago I found that message of Jay Sorg and retrieved a copy of his code for a native rdesktop win32 version. I played a little and got the code compile with Visual Studio 2005 with the Windows Mobile SDK.
I tried to implement windows clipboard support to enhance the transfer of texts between the client and server, but unfortunately I was not successful yet. Hopefully someone jumps in and helps enhancing the code and adds some features.
Rdesktop is open source and you can go with the wince implementation here, but if it does not work for you, you have either change the code yourself (and publish it) or find someone that is able to do for you.
There is a template uiports/xxxwin.c in the actual rdesktop source you can use as a starter to compile the actual rdesktop version for windows mobile if you manage to get all the dependencies to work. If you success, forget this post and go with this version (maybe you leave me a note?).

Why another Remote Desktop/Terminal Server Client?
Continue reading ‘Mobile Development: a native remote desktop client (rdesktop port win32)’ »
Tags:
mstsc,
rdesktop,
rdesktop-ce,
rdp,
rdp_autologin,
remote desktop mobile,
terminal service client,
tsc,
win32,
windows mobile,
wpctsc.exe Category:
CodeProject,
Int*rm*c,
kiosk mode,
Programming,
Tools,
Utilities |
39 Comments
November 18, 2010, 17:03
Hello
here is one other way to write a kios mode .NET application using a technique called SubClassing. The idea was born by a comment of redwolf2222 on this blog about how to Hide Start and Close buttons on Windows Mobile 6.5 devices. Redwolf2222 also provided a code snippet. Unfortunately it was incomplete and so I wrote my own class.
Disable clicks on Start and Close button
The demo project shows one dialog with two check boxes and you can easily test the function. If “StartButton Disabled” or “Close Button disabled” is checked, you cannot ‘click’ the corresponding button any more:

You still ‘click’ the buttons but the subclassed window will not ‘execute’ your click. The buttons are part of the toolbar32 window which is a child of the menu_worker window. So first we have to follow the window tree.
Find the right window
/// <summary>
/// SubClassing: Install the wndproc hook
/// </summary>
/// <returns></returns>
private bool hookWindow()
{
//find taskbar
IntPtr hWndTaskbar = FindWindow("HHTaskbar", IntPtr.Zero);
if (hWndTaskbar == IntPtr.Zero)
return false;
//enable the taskbar, not realy necessary
EnableWindow(hWndTaskbar, true);
//already installed?
if (oldWndProc == IntPtr.Zero)
{
//find the menu_worker window
IntPtr hwndMenu_Worker = FindWindow("menu_worker", IntPtr.Zero);
if (hwndMenu_Worker != IntPtr.Zero)
{
//get the child window which has the buttons on it
IntPtr hwndToolbar = GetWindow(hwndMenu_Worker, GetWindow_Cmd.GW_CHILD);
if (hwndToolbar != IntPtr.Zero)
{
_mHwnd = hwndToolbar; //store to remember
SubclassHWnd(hwndToolbar); //subclass the wndproc
}
}
}
return true;
}
Subclassing
Now, as we have the window handle, the subclassing can be started:
Continue reading ‘Mobile Development: Disable Windows Mobile 6.5 Start and Close Button’ »
Tags:
6.5.3,
Close Button,
DotNet,
hook,
kiosk mode,
Programming,
sender-as-rectangle-windows-ce,
Start Button,
Subclassing,
taskbar,
windows mobile,
WM65 Category:
CodeProject,
kiosk mode,
Programming,
Tools,
Utilities |
2 Comments
September 17, 2010, 13:14
Some times ago, I got a device locked with a password. As I needed to access the device using ActiveSync I did some research and found the registry keys responsible for the device password:
HKLM\Security\SIM\6fb7
HKCU\ControlPanel\Owner\PowrPass
So I wrote a small application which resets the device password.
Continue reading ‘Mobile Development – Reset Device password’ »
September 7, 2010, 17:08
Here is one more windows mobile taskbar addon. I have seen many people are interested in these small widgets. This one shows the signal strength of the current associated access point in your taskbar.

The code is the same as with the other taskbaraddons you find here, only the code for wireless signal strength has been added. Oh, yes, and this addon uses small bitmaps to show the signal strength.

To get the signal strength I use part of PeekPocket code submission at CodeProject. I only need the name of the first wireless adapter.
Continue reading ‘Mobile development – a WiFi signal strength indicator’ »
Tags:
addon,
get-signal-strength-on-wince,
mobile,
ndisuio,
pocketpc,
RSSI,
taskbar,
wifi,
wirless,
wlan Category:
CodeProject,
Programming,
Tools |
Comment