I am trying to get a global interface table using the following code (Delphi):
uses Comobj, ActiveX; var cGIT : IGlobalInterfaceTable = NIL; const CLSID_StdGlobalInterfaceTable: TGUID = '{00000146-0000-0000-C000-000000000046}'; function GIT : IGlobalInterfaceTable; begin if (cGIT = NIL) then OleCheck (CoCreateInstance (CLSID_StdGlobalInterfaceTable, NIL, CLSCTX_ALL, IGlobalInterfaceTable, cGIT )); Result := cGIT; end;
However, CoCreateInstance throws a class exception without registering. And really: there is no entry in the HKCR / CLSID for {00000146-, etc.}.
What dll or ocx must be registered to get this definition in the registry? Or am I doing this completely wrong?
source share