Notices

Applications and Utilities Talk about apps and utilities for Windows Mobile and PPC

Reply
 
LinkBack Thread Tools
Old 07-13-05, 02:05 PM   #1 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,574
Thanked 1 Time in 1 Post
Hacking the three remote ActiveSync applications out of main memory

This is a new instalment in my memory hacking/freeing-up series, with the previous instalment (with all the necessary links for my other related articles/posts) being here.

Before I finally publish my roundup of the three remote ActiveSync applications, due to popular demand, I post the results of my hacking efforts regarding the three remote ActiveSync applications.

SOTI Pocket Controller Professional 5.01:

This app has the following files in \Windows:

PkCtrlSv.dll – 149k – this is needed to be in \Windows so that the client doesn’t want to reinstall the client
MCResEng.dll – 17.9k – can’t be relocated
DeviceConfig.cpl – 49k
ddividacc.dll – 19.4k
Startup\CommLoader.exe – 60k

Unfortunately, the path to PkCtrlSv.dll is hard-wired into CommLoader.exe. I’ve tried to overwrite the wired-in string \Windows at file positions 0xd0d8, 0xd2e0 and 0xd2f4 to change the DLL path (see my posts on advanced (hexedit) DLL path hacking for more info on the why’s), but in vain. That is, this app is almost (some small DLL’s can be relocated only) unrelocatable. The developer, SOTI, could look into making their app more RAM-friendly by eliminating wired-in references to \Windows….

dotPocket 2.1

It has the following files in \Windows:
- 226kbytes in dp* and gapi DLL's;
- six .2bp files taking 151k (!)
There are some other files in \Program Files, taking up another 269k and \Windows\StartUp\dpTCPGateway.lnk. All of these files can be deleted if you only use dotPocket via USB and not through a TCP/IP connection (even the contents of the \Program Files subdirectory and \Windows\StartUp file)! This results in saving quite quite much memory.


ActiveSync Remote Display

It doesn’t put anything in \Windows, except for cerdisp2.exe and KillProc.exe, the two taking up 25 kbytes. This only happens when you start the desktop component; otherwise, you can freely delete these files.

Incidentally, as ActiveSync Remote Display isn’t VGA-aware, you will have to force it into the VGA mode based on the FAQ of ctitanic, author of Tweaks2k2; or with other tools like Mad Programmer's Force Hi-resolution tool. As you may already have guessed, you’ll need to force the above-mentioned cerdisp2.exe.
Menneisyys is offline   Reply With Quote
Sponsor Ads
Old 07-13-05, 03:09 PM   #2 (permalink)
CdSlc
Guest
 
Posts: n/a
Excellent article. :approve: I went through the links that you have provided and found that you have written some excellent memory/DLL tweaking/hacking tips and tricks. You are The Memory Guru

In your article at this Brighthand Forum, you have mentioned something about changing SystemPath in the Registry. I am using PHM Regedit to look at my registry. On my X50v, I have HKLM\Loader and within this I have the variable by the name SystemPath, and the Data it shows is '\Release\'. Now I don't have this directory called 'Release' anywhere. I would have thought that this variable would contain '\Windows\' as the value. What am I doing wrong here?

Also, if I define a new path for the 'SystemPath' variable like say '\CF Card\WindowsDLLs\'. Can I move all the DLLs from the '\Windows' folder to '\CF Card\WindowsDLLs\'? Or are there certain files that can be moved and certain files that cannot be moved?
  Reply With Quote
Old 07-14-05, 02:33 AM   #3 (permalink)
Contributing Reviewer
 
Join Date: Jan 2005
Posts: 4,574
Thanked 1 Time in 1 Post
Originally Posted by CdSlc
In your article at this Brighthand Forum, you have mentioned something about changing SystemPath in the Registry. I am using PHM Regedit to look at my registry. On my X50v, I have HKLM\Loader and within this I have the variable by the name SystemPath, and the Data it shows is '\Release\'. Now I don't have this directory called 'Release' anywhere. I would have thought that this variable would contain '\Windows\' as the value. What am I doing wrong here?
The System Path may contain even non-existing directories; they won't cause problems. \Windows doesn't need to be in the System Path; it's automatically searched.

Originally Posted by CdSlc
Also, if I define a new path for the 'SystemPath' variable like say '\CF Card\WindowsDLLs\'. Can I move all the DLLs from the '\Windows' folder to '\CF Card\WindowsDLLs\'? Or are there certain files that can be moved and certain files that cannot be moved?
Not all DLL's can be moved - see for example the SOTI DLL's above. Also, Today plug-in DLL's generally can't be moved to a memory card because of the wakeup latency of cards. They can, however, in a lot of cases can be moved to the built-in File Store because the latter doesn't have a wakeup latency at boot.
Menneisyys is offline   Reply With Quote
Reply

Tags
activesync, applications, hacking, main, memory, remote

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 02:12 PM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC