API | ITcTypeSystem See also ITcTypeInstance [ } 77] 5.8.1.1 ITcTypeSystem::CreateType | ITcTypeSystem::CreateType Creates and registers a data type from an IEC declaration or XML. Support is provided for a direct IEC declaration, a single DataType element, and TcModuleClass/DataTypes . If the latter contains multiple DataType nodes, all types are imported, and S_OK is returned as *pipType = nullptr . Signature HRESULT CreateType(BSTR xml, ITcTypeInstance** pipType); Parameter Return value Error codes E_POINTER : pipType is NULL . ADS_E_ERROR : The input was neither a readable IEC declaration nor a processable XML format.
5.8.1.2 ITcTypeSystem::DeleteType | ITcTypeSystem::DeleteType Deletes a registered data type from the type system based on its GUID. Signature HRESULT DeleteType(GUID guid); Parameter Return value Error codes E_NOT_SET : guid is GUID_NULL . E_INVALIDARG : There is no type with this GUID in the type system. 5.8.1.3 ITcTypeSystem::LookupType | ITcTypeSystem::LookupType Looks up a registered data type by its GUID. TE1000 74 Version: 1.7.0 Name Type Description xml BSTR [in] IEC declaration or XML with type definitions. Name Type Description pipType ITcTypeInstance [} 77]** [out, retval] Registered type; for multiple imports via TcModuleClass/DataTypes, the return value remains NULL.
(HRESULT) HRESULT S OK if successful, otherwise an error code. _ Name Type Description guid GUID [in] GUID of the type to be deleted. Name Type Description (HRESULT) HRESULT S OK if successful, otherwise an error code. _