The IAccessible::get_accChildCount method retrieves the number of children that belong to this object. All objects must support this property.
HRESULT get_accChildCount( long* pcountChildren );
- [out, retval] Address of a variable that receives the number of children that belong to this object. The children are accessible objects or child elements. If the object has no children, this value is zero.
If successful, returns S_OK.
If not successful, returns a standard COM error code. Although servers return these values, clients must always check output parameters to ensure that they contain valid values. For more information, see Checking IAccessible Return Values.
Note to server developers If the object does not have any children, return S_OK and set pcountChildren to zero.
Windows NT/2000/XP/Server 2003: Included in Windows 2000 and later.
Windows 95/98/Me: Included in Windows 98 and later.
Redistributable: Requires Active Accessibility 1.3 RDK on Windows NT 4.0 SP6 and Windows 95.
Header: Declared in Oleacc.h.
Library: Use Oleacc.lib.