VB Decompiler Forum Index VB Decompiler
Hosted by TheAutomaters.com
 
  MemberlistMemberlist
 

Method [depreciated: CodeInfo]

 
   VB Decompiler Forum Index -> Structures
Author Message
MrUnleaded
Site Admin


Joined: 21 Sep 2002
Posts: 385
Location: California

Posted: Thu Oct 17, 2002 4:26 pm     Post subject: Method [depreciated: CodeInfo]

Parent:
Object Info
Event Pointer

Code:
Private Type tMethod
aObjectInfo As Long ' 0x00 (0d)
Flag1 As Integer ' 0x04 (4d)
Flag2 As Integer ' 0x06 (6d)
MethodLength As Integer ' 0x08 (8d)
Flag3 As Long ' 0x0A (10d)
Flag4 As Integer ' 0x0E (14d)
Null1 As Integer ' 0x10 (16d)
Flag5 As Long ' 0x12 (18d)
Flag6 As Integer ' 0x16 (22d)
' 0x18 (24d) <-- Structure Size
End Type


Note:
Applying the Extentions below make seemless code segments [for the most part]
Code:

Structure: [ MethodString ][ Method ]
Sizes: [<--MethodLength-->][<--0x18-->]



Extentions
There are two "Extentions" of the Method Struct each is a variable length struct.

the first Extension's length is defined by the first integer at the offset 0x18 call it "e1Len"

the second Extension's length is defined by the first integer at the offset 0x18+e1Len call it "e2Len"

the entire length of the Method Struct would then be defined as (0x18+e1Len+e2Len)

Information on Extention 1

First Integer is Length
remaining is unknown

Information on Extention 2

First Integer is Length
Next Long is Null
Next Integer is the Number of Variables used in the code
for each variable{
Integer is Variable
Integer is Variable Type?
}


Last edited by MrUnleaded on Thu Aug 12, 2004 8:28 pm; edited 7 times in total
Back to top
_aLfa_
Site Admin


Joined: 21 Sep 2002
Posts: 233
Location: Aveiro, Portugal

Posted: Fri Oct 18, 2002 7:01 pm     Post subject:

my struct size is 24h
_________________
One thing only I know, and that is that I know nothing. (Socrates)
Back to top
MrUnleaded
Site Admin


Joined: 21 Sep 2002
Posts: 385
Location: California

Posted: Sat Oct 19, 2002 5:45 pm     Post subject:

[="_aLfa_":27pauq5m]my struct size is 24h [/:27pauq5m]

oh yea...to account for extra space....the size cant be more then 0x2F.....so thats max.....
Back to top
MrUnleaded
Site Admin


Joined: 21 Sep 2002
Posts: 385
Location: California

Posted: Wed Dec 04, 2002 12:08 am     Post subject: update

i have verified the struct length to be 0x18

i have also noted some new extentions, if you will, of the codeInfo struct
_________________
-MrU
Back to top
MrUnleaded
Site Admin


Joined: 21 Sep 2002
Posts: 385
Location: California

Posted: Thu Aug 12, 2004 8:27 pm     Post subject:

Updated: Changed name to Method
_________________
-MrU
Back to top
   VB Decompiler Forum Index -> Structures All times are GMT
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group