delphi – 如果我只有类/ VMT地址,如何获取类的单元名称

当我读到 here时,

the VMT also contains a number of “magic” fields to support features
such as parent class link,instance size,class name,dynamic method
table,published methods table,published fields table,RTTI table,
initialization table for magic fields,the deprecated OLE Automation
dispatch table and implemented interfaces table

看起来VMT不包含包含定义类的单元名称的字段.是否涉及一些“编译魔术”?

解决方法

我不明白为什么VMT应该参与其中. TObject已经公开了一个函数UnitName.

System.TObject.UnitName

相关文章

 从网上看到《Delphi API HOOK完全说明》这篇文章,基本上都...
  从网上看到《Delphi API HOOK完全说明》这篇文章,基本上...
ffmpeg 是一套强大的开源的多媒体库 一般都是用 c/c+&#x...
32位CPU所含有的寄存器有:4个数据寄存器(EAX、EBX、ECX和ED...
1 mov dst, src dst是目的操作数,src是源操作数,指令实现的...