Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Servers implement this callback interface. This interface is passed to the annotation methods and is called back when a client requests the values of one of the properties being annotated.
HRESULT GetPropValue (
const BYTE* pIDString,DWORDdwIDStringLen,MSAAPROPIDidProp,VARIANT* pvarValue,BOOL* pfHasProp);
Should always return S_OK, except under exceptional error conditions such as low memory. If the specified property is not overridden, then pfHasProp should be set to FALSE and pvarValue should be set to VT_EMPTY by the callee.
If a single callback object is registered for annotating multiple accessible elements, the identity string can be used to determine which element this request refers to.
If the accessible element is HWND-based, IAccPropServices::DecomposeHwndIdentityString() can be used to extract the HWND/idObject/idChild from the identity string.
If the callback has a value to return for the specified property, it should return it in pvarValue and set pfHasProp to TRUE. Otherwise it should set pvarValue to VT_EMPTY and set pfHasProp to FALSE. In this latter case, the original IAccessible interface pointer will be used to obtain a value for this property.
** Windows NT/2000/XP/Server 2003:** Included in Windows XP and Windows Server 2003.
** Windows 95/98/Me:** Unsupported.
** Redistributable:** Requires Active Accessibility 2.0 RDK on Windows NT 4.0 SP6 and Windows 98.
** Header:** Declared in Oleacc.h; include Initguid.h before including Oleacc.h.
Please sign in to use this experience.
Sign in