BUG: Skip() Member Function of the IEnumVARIANT Interface Returns Incorrect ValuesID: Q228504
|
The default implementation of IEnumVARIANT::Skip() for objects created by the Active Accessibility component is incorrect and returns:
orS_OK if not at the end of the enumeration
These messages are returned regardless of whether it skipped the number requested or not. This is inconsistent with the documented behavior of IEnumVARIANT::Skip() which would only return S_OK if the specified number of elements were skipped.S_FALSE if at the end of the enumeration
This behavior is by design.
The return values of IEnumVARIANT::Skip( unsigned long celt ) are documented as:
S_OK if the number of elements skipped is equal to celt, andThis function is internally called by the AccessibleChildren() function. But the AccessibleChildren() function handles the odd return values and the Skip() function works fine internally. If this function is called externally, which is not recommended, then the oddity in the return value should be noted.
S_FALSE if the number of elements skipped is fewer than celt.
MSAA
Additional query words: kbAAcc kbWinOS kbNTOS400 kbWinOS2000
Keywords : kbAAcc kbNTOS400 kbWinOS2000 kbWinOS
Version : WINDOWS:
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: May 10, 1999