How to get the GIT in Delphi 7?

后端 未结 3 467
忘掉有多难
忘掉有多难 2021-01-19 17:15

I\'m trying to get the Global Interface Table by using the following code (Delphi):

uses Comobj, ActiveX;

var
   cGIT : IGlobalInterfaceTable = NIL;
const
          


        
3条回答
  •  情深已故
    2021-01-19 17:53

    You have defined CLSID_StdGlobalInterfaceTable incorrectly: you have supplied the GUID of the interface rather than a concrete class.

    I don't have the Windows header files around, so I can't check against them, but a search suggests it should be:

     CLSID_StdGlobalInterfaceTable: TGUID = '{00000323-0000-0000-C000-000000000046}';
    

提交回复
热议问题