The tricky part is getting the RTTI from the interface. If you succeed, you should already have a name in the entry pointer PTypeInfo.
In one of my programs, I wrote a special registration system that matched GUIDs with strings so that I could report failed calls QueryInterfaceand not make " as". This was in delphi 2005. I understand that in later versions of Delphi RTTI for interfaces has progressed so that I may not need this system.
source
share