OleAccAccessibleObjectFromPoint(NativePoint, IAccessible, Object) Method
Retrieves the address of the IAccessible interface pointer for the object displayed at a specified point on the screen.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("OleAcc.dll")]
public static HResult AccessibleObjectFromPoint(
NativePoint ptScreen,
out IAccessible refAccessible,
out Object refChild
)
<DllImportAttribute("OleAcc.dll">]
Public Shared Function AccessibleObjectFromPoint (
ptScreen As NativePoint,
<OutAttribute> ByRef refAccessible As IAccessible,
<OutAttribute> ByRef refChild As Object
) As HResult
Dim ptScreen As NativePoint
Dim refAccessible As IAccessible
Dim refChild As Object
Dim returnValue As HResult
returnValue = OleAcc.AccessibleObjectFromPoint(ptScreen,
refAccessible, refChild)
public:
[DllImportAttribute(L"OleAcc.dll")]
static HResult AccessibleObjectFromPoint(
NativePoint ptScreen,
[OutAttribute] IAccessible^% refAccessible,
[OutAttribute] Object^% refChild
)
[<DllImportAttribute("OleAcc.dll")>]
static member AccessibleObjectFromPoint :
ptScreen : NativePoint *
refAccessible : IAccessible byref *
refChild : Object byref -> HResult
No code example is currently available or this language may not be supported.
- ptScreen NativePoint
-
Specifies, in physical screen coordinates, the point that is examined.
- refAccessible IAccessible
- A variable that receives the address of the object's IAccessible interface.
- refChild Object
-
A VARIANT structure that specifies whether the IAccessible interface pointer that is
returned in refAccessible belongs to the object displayed at the specified point,
or to the parent of the element at the specified point.
The vt member of the VARIANT structure is always VT_I4.
If the lVal member is CHILDID_SELF, then the IAccessible interface pointer
at refAccessible belongs to the object at the point.
If the lVal member is not CHILDID_SELF, refAccessible is the
address of the IAccessible interface of the child element's parent object.
Clients must call VariantClear on the retrieved VARIANT structure when finished using it.
HResult
If successful, returns
S_OK.
If not successful, returns a
HResult error code.