API | ITcTypeInstance Properties Methods 5.9.3.1 ITcTypeInstance3::GetChildItemBitOffs | ITcTypeInstance3::GetChildItemBitOffs Returns the bit offset of a child element as a 32-bit value. For structs, the stored field offset is used. For arrays, the offset is calculated based on the element size and the index of the first dimension. Signature HRESULT GetChildItemBitOffs(long idx, long* pBitOffs); Parameter Return value Error codes E_POINTER : pBitOffs is NULL . ADS_E_NOTFOUND : idx does not match an existing child, or the type has no children.
See also GetChildItemName GetChildItemType 5.9.3.2 ITcTypeInstance3::GetChildItemName | ITcTypeInstance3::GetChildItemName Returns the name of a child element based on a 0-based index. Struct fields are returned as .Feldname , and array elements as [Index] , taking into account the lower array boundary. Signature HRESULT GetChildItemName(long idx, BSTR* pName); TE1000 81 Version: 1.7.0 Property Type get/set Description ChildItemCount long* get Number of fields in a struct or elements in the first dimension of an array. Method Description GetChildItemBitOffs Returns the 32-bit offset of a child element. GetChildItemName Returns the name of a field or the array index of a child element.
GetChildItemType Returns the type of a child element or creates a temporary array type. Name Type Description idx long [in] 0-based child index. Name Type Description pBitOffs long* [out, retval] Bit offset of the child element. (HRESULT) HRESULT S OK if successful, otherwise an error code. _