beckhoff TE1000 TwinCAT 3 — 5.9.3 ITcTypeInstance3

API | ITcTypeInstance 5.9.2 ITcTypeInstance2 | ITcTypeInstance2 Inherits from: ITcTypeInstance Expanded by: ITcTypeInstance3 ITcTypeInstance2 adds C declaration output and alignment checking to the basic interface. Properties Methods 5.9.2.1 ITcTypeInstance2::GetCDeclaration | ITcTypeInstance2::GetCDeclaration Explicitly generates the C declaration of the type, with or without an inclusion guard. Signature HRESULT GetCDeclaration(VARIANT_BOOL createInclusionGuard, BSTR* pCDeclaration); Parameter Return value Error codes E_POINTER : pCDeclaration is NULL . 5.9.3 ITcTypeInstance3 | ITcTypeInstance3 Inherits from: ITcTypeInstance2 Expanded by:

ITcTypeInstance4 ITcTypeInstance3 opens structured types and arrays for child-based navigation. The child indices are 0- based. In arrays, each child represents an element of the first dimension. TE1000 80 Version: 1.7.0 Property Type get/set Description CDeclaration BSTR* get Provides the C declaration for struct types or types with a base type. IsAligned VARIANT BOOL* _ get Checks whether the type is currently aligned. Method Description GetCDeclaration Generates a C declaration, optionally with an inclusion guard. Name Type Description createInclusionGuar d VARIANT BOOL _ [in] VARIANT TRUE to insert an inclusion guard.

_ Name Type Description pCDeclaration BSTR* [out, retval] Generated C declaration. (HRESULT) HRESULT S OK if successful, otherwise an error code. _