Heaventools

   English English  Deutsch Deutsch  Русский Русский
Heaventools Support Forums
May 18, 2013, 03:17:12 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Delphi PACKAGEINFO  (Read 4060 times)
0 Members and 1 Guest are viewing this topic.
exp101t
New Member
*
Posts: 3

Offline Offline



« on: July 18, 2007, 12:26:15 am »

I am trying to understand the PACKAGEINFO of Delphi compiled programs.

I ended up with these resource information:

Data   Unit Name                         Flags
-----  --------------------------------  --------------------------------
3701h  Project1                          main unit
8F10h  FlatSB                            implicitly imported
...

I would like to know what the Data column means and what each bit flags in this data mean.
TechMan
Heaventools
Support
***
Posts: 221

Location:
On Air

Offline Offline



« Reply #1 on: July 18, 2007, 01:47:16 pm »

PackageInfo shows a list of unit files contained by (or bound into) the package and used during compiling an executable.

Purpose and meaning of the Data column is unknown since the PackageInfo structure is not documented. The bit flags are self-explanatory, though: the units contained in a package make references to other packaged units.

TechMan Robot
Heaventools Software
exp101t
New Member
*
Posts: 3

Offline Offline



« Reply #2 on: July 18, 2007, 08:08:47 pm »

Hmm... I think I'll try to check out more on this Data portion. I'm trying to link these names with the table located right just above the EntryPoint, which also is a parameter of the first subroutine.

From my Delphi sample sets, I usually see 4 flags namely:

$WEAKPACKAGEUNIT unit
original containment of $WEAKPACKAGEUNIT
implicitly imported
main unit

Are there any other flags besides these four?
exp101t
New Member
*
Posts: 3

Offline Offline



« Reply #3 on: July 19, 2007, 11:55:00 pm »

I already got it. Thanks for the tip TechMan.

  { PackageUnitFlags:
    bit      meaning
    ------------------------------------------------------------------------------------
-----
    0      | main unit
    1      | package unit (dpk source)
    2      | $WEAKPACKAGEUNIT unit
    3      | original containment of $WEAKPACKAGEUNIT (package into which it was compiled)
    4      | implicitly imported
    5..7   | reserved
  }
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC