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
|
Name |
Type |
Description |
|---|---|---|
|
idx |
long |
[in] 0-based child index. |
Return value
|
Name |
Type |
Description |
|---|---|---|
|
pBitOffs |
long* |
[out, retval] Bit offset of the child element. |
|
(HRESULT) |
HRESULT |
|
Error codes
-
E_POINTER:pBitOffsisNULL. -
ADS_E_NOTFOUND:idxdoes not match an existing child, or the type has no children.
See also
- GetChildItemName
- GetChildItemType