4WinMobile.com  

Go Back   4WinMobile.com > 4WinMobile Site > News > Old News and Old Press Releases

Old News and Old Press Releases Archive containing old News Threads and Press Releases

Post New ThreadReply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 22-03-2008, 04:20 PM
windows's Avatar
Administrator
 
Join Date: Sep 2005
Location: Manchester UK
Posts: 23,271
WM Team Blog: Why can't I copy programs out of \Windows?

I've seen people internally and externally ask for help copying files out of \Windows on the device, usually EXEs and DLL files. I'm not sure what their end goal - sometimes it's to try those binaries on a different device but there are probably other reasons too. In general, it's pretty hard to do this and the obvious methods won't work.
There are two main sections of the internal ROM of a device, called FILES and MODULES. You can copy anything you want out of the FILES section. All of the data files like graphics and other multimedia go in the FILES section. Some program binaries will also end up in the FILES section, depending on where Microsoft and the OEM choose to put them. You can tell a file in the MODULES section because it will have the FILE_ATTRIBUTE_ROMMODULE attribute as well as FILE_ATTRIBUTE_INROM. Files in the FILES section will only have FILE_ATTRIBUTE_INROM. If you're looking at the files in a file explorer that shows attributes in hex, FILE_ATTRIBUTE_ROMMODULE|FILE_ATTRIBUTE_INROM shows up as 0x2040.
The programs in the MODULES section of ROM are specially processed before getting put into ROM. Most of the headers are removed and the addresses are fixed up so that the programs can run without having to be loaded into RAM first. This saves RAM and performance later on. What this means to you is that even if you could get the bytes out of ROM, you wouldn't be able to use them. The binary has been stripped down and customized for that particular device.
There are unsupported tools externally available that are able to copy the modules out of ROM and then try to reconstruct the original file. If you still need to extract those bytes, you can probably find one of those tools.

Scott


More...
Reply With Quote

Sponsors
  #2 (permalink)  
Old 23-03-2008, 12:56 AM
boz's Avatar
boz boz is offline
Site Moderator
Donor
 
Join Date: May 2007
Location: East of England U.K.
Posts: 12,754
Re: WM Team Blog: Why can't I copy programs out of \Windows?

Good post, I use the unsupported tools that Scott mentions when evaluating a rom for interesting bits and pieces.
__________________
Certified Windows Mobile Specialist 2009
Certified Windows Mobile Small Business Retail Specialist.

O2 Xda Guide, Acer M900, Glofiish DX900, O2 Ignito, Glofiish V900, O2 Orbit 2.
If you enjoy this site then please ensure it's survival with a Donation or a Subscription.
Reply With Quote
  #3 (permalink)  
Old 23-03-2008, 02:08 AM
VIP (Sponsor or Developer)
 
Join Date: Nov 2005
Posts: 64
Re: WM Team Blog: Why can't I copy programs out of \Windows?

So where are these tools? I've had a desire for this at times as well.
Reply With Quote
Sponsors
Post New ThreadReply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
Pingbacks are Off
Refbacks are Off



Friends of 4WM
Spb


All times are GMT +1. The time now is 02:03 AM.

Sponsors




 


Design by: vBulletin Skins Zone
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
(c) Daron Brewood - www.4winmobile.com 2004-2009
Ad Management by RedTyger


Page generated in 0.14861 seconds with 9 queries