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

GUI Object

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


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

Posted: Wed Aug 25, 2004 7:18 pm     Post subject: GUI Object

Parents:
VB Header

[vb:2mbigxag]
  1. Type GUIObject
  2.   lStructSize             As Long '0x00 (00d) This structure size
  3.   guidObjectGUI(15)       As Byte '0x04 (04d) GUID of ObjectGUI
  4.   guidFreezeEventsIID(15) As Byte '0x14 (20d) GUID of FreezeEvents Interface
  5.   lObjectID               As Long '0x24 (36d) ObjectID in the project
  6.   fControlFlags           As Long '0x28 (40d) Flags specifing the controls used
  7.   fOLEMisc                As Long '0x2C (44d) OLEMisc Flags
  8.   guidObjectCLSID(15)     As Byte '0x30 (48d) GUID of this ObjectCLSID
  9.   lGUIObjectInfoSize      As Long '0x40 (64d) Total Size of GUIObjectInfo structure
  10.   lNull1                  As Long '0x44 (68d)
  11.   aGUIObjectInfo          As Long '0x48 (72d) Pointer to GUI Object Info
  12.   oDummy                  As Long '0x4C (76d) Offset from VBHeader.aGUITable to this member
  13.                                   '0x50 (80d) <-- Structure Size
  14. End Type
[/vb:2mbigxag]

Flags:
OLEMisc Flags

Pointers:
GUI Object Info
_________________
One thing only I know, and that is that I know nothing. (Socrates)


Last edited by _aLfa_ on Tue May 03, 2005 5:03 pm; edited 5 times in total
Back to top
_aLfa_
Site Admin


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

Posted: Wed Aug 25, 2004 7:18 pm     Post subject:

I have decided to add this structure, since no one bothered
_________________
One thing only I know, and that is that I know nothing. (Socrates)
Back to top
ionescu007
Sometimes here


Joined: 21 Aug 2004
Posts: 33

Posted: Wed Sep 01, 2004 5:13 am     Post subject:

Private Type GuiTable
dwStructSize As Long
uuidObjectGUI As UUID ' // 0x04 UUID of Object GUI
uuidFreezeEvent As UUID ' // 0x08 Compared with UUID of "IID_IFreezeEvents"
lObjectID As Long ' // 0x24 Current Object ID in the Project
fControlFlags As Long ' // 0x28 Changes depending on which Controls the Object Implements
fOLEMisc As Long ' // 0x2C OLEMisc Flags
uuidObject As UUID ' // 0x30 UUID of Object
dwReserved As Long ' // 0x40 Unused.
dwObjectInfoSize As Long ' // 0x44 Size of Object GUI Data
lpGUIObjectInfo As Long ' // 0x48 Pointer to Object GUI Data
dwCurrentOffset As Long ' // 0x4C Current Offset of this element vis-a-vis first VBHeader.lpGuiTable
End Type

I'm too tired to update the PDF for now..but here you go _aLfa_

Best regards,
Alex Ionescu
President, Relsoft Technologies
Kernel Developer, ReactOS
Back to top
ionescu007
Sometimes here


Joined: 21 Aug 2004
Posts: 33

Posted: Wed Sep 01, 2004 5:16 am     Post subject:

Forgot to add, I'm 99% sure the fControlFlags are the same as the MDL flags, but I will have to check it out. Basicaally, depending on which controls I added, new bitmasks where added..you can try it out, but i'll have a defintiive list tomorrow. I'm also positive that uuidFreezeEvent is also compared to other UUIDs... anyways, its some kinda secondary UUID. you're pretty good with those, so you might try finding out...I've never seen it in a compiled project of mine, but the runtime defintely reads and compares it with IID_IFreezeEvents. I don't know what would add it yet...

and dwReserved is unread/unwritten by the compiler, at least that's what 1 hour of research came up with.

Best regards,
Alex Ionescu
President, Relsoft Technologies
Kernel Developer, ReactOS
Back to top
_aLfa_
Site Admin


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

Posted: Wed Sep 01, 2004 11:46 am     Post subject:

OK, its fixed now and you have 2 offsets wrong in your structure.
_________________
One thing only I know, and that is that I know nothing. (Socrates)
Back to top
ionescu007
Sometimes here


Joined: 21 Aug 2004
Posts: 33

Posted: Wed Sep 01, 2004 8:05 pm     Post subject:

Thanks, I inversed them.


Best regards,
Alex Ionescu
President, Relsoft Technologies
Kernel Developer, ReactOS
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