function CreateComObject(const ClassID: TGUID): IUnknown;
See the Using COM Automation objects topic.