[Advantage X7500, MDA Ameo General] mahjong:
OK I was working in the customization of the HTCHomeplug.

What is HTCHomeplug? If you own a HTC X7500 Advantage (the HTC make of Athena or Ameo) then in the Today screen you got a plugin that shows some icons like Battery, Rotation, Comm Manager, Screen Light, Quick GPS and TVOut. What I discovered is who to deal with this plugin in order to change the icons and applications associated there.

I used PHM Registry to edit entries at the PPC registry, but you can use the editor of your like.

First is access using the registry editor to this entry:

/HKEY_LOCAL_MACHINE/SOFTWARE/HTC/HTCHomeplug

There is the configuration of the plugin. There we will find two entries pointing to the first two icons (Battery and Rotation) that seems to be configured in a different way that the rest of the icons. Those are the two DWORD entries:

PowerIconSlot with value of 0 (this means the first position in the plugin)

RotateIconSlot with value of 1 (this means the second position)

The rest of the positions in the HTCHomeplug appears like KEY entries with names from 2 to 5 meaning positions 3 to 6 in the plugin bar.

Inside each key (2 to 5) we find 3 values (or entries):

1- iconindex DWORD type of Decimal which contains 103 in the case of entry KEY 2

2- LaunchApPath STRING contains the path to the executable file associated to the icon

3- ResPath STRING contais the path to the resource file which contais the icon image poited by iconindex entry. This path points to a DLL or EXE file containing the icon image.

So... since we want to add a icon/application we need to create the entry KEY 6 and we must create both STRING entries and DWORD one inside the KEY 6.

To add Tomtom Navigator in the HTCHomeplug (as an example) I added:

iconindex = 101

LaunchApPath = \Program files\Navigator\Tomtom Navigator.exe

ResPath = \Program files\Navigator\Tomtom Navigator.exe

So I'm using the icon storaged in the Tomtom Navigator executable file itself and my Tomtom is in the path I show in the entry. Off course this could not match your installation.

How I found the iconindex information that points to the icon in the Tomtom's EXE file??? Easy I used a program called RViewer (for PPC) develop by Vicott Wong. The program can by found in Google or in the web page shown in the About screen.... http://mobile-sg.com

Running that program and browsing the EXE file (or a DLL) we can see the index for each resource and if it's an image the image is display in the screen, so I found the 101 is the index for the Tomtom icon inside de EXE file.

Once the entries in the Registry are done the rest is easy. Just go into Start - Configuration - Personal - Today and int the Elements Tab. There unmark the HTCHomeplug and exit the configuration going into the Today screen to check that the plugin is not in the screen. Then we back to the Today configuration and select again the HTCHomeplug to mark it. Once we are back into the Today screen we will see the new icon.

(OK in the previous paragraph I'm translating the menu options and clicks from my spanish release of WM5 into english one so the names could not match... what you need to do is configure Today screen to remove the plugin and to configure again to insert the plugin, that way the plugin is reseted and the new icons loaded).

I did several tests and looks like the HTCHomeplug only supports 7 icons (0 to 6) but since many of the original icons are not use on daily bases we can setup up to 5 programs in that plugin leaving the Battery and Rotary icons in its place.

I hope this is useful... and I beg your pardon for my poor english.

Regards,

mahjong

P.S.: I posted this first at todopocketpc.com in spanish. If you know that language maybe you prefer read it in my mother language. For sure will be much better written.