Hi all,

I have an interface.

Code:
type
 IMyInterface = interface(IInterface)
  ['{BCDDF1B6-73CC-406C-912F-7148095F1F4C}']
 end;
How can I retrieve the GUID (BCDDF1B6-73CC-406C-912F-7148095F1F4C) from this interface without creating an instance?? I really DON'T want to create an instance. What I want is this:

Code:
function GetInterfaceByGUID(cosnt i: IInterface): TGUID;
begin
 Result := {do some magic} I.IID;
end;
But this doesn't work. I know I have to do something manually, but where I look at the net, everywhere they construct an object. Which I don't want.

Using Delphi 2007
using Windows XP and up.