OleAccWindowFromAccessibleObject Method

Retrieves the window handle that corresponds to a particular instance of an IAccessible interface.

Definition

Namespace: DevCase.Win32.NativeMethods
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("OleAcc.dll", SetLastError = true)]
public static HResult WindowFromAccessibleObject(
	IAccessible acc,
	ref IntPtr refHwnd
)

Parameters

acc  IAccessible
Pointer to the IAccessible interface whose corresponding window handle will be retrieved.

This parameter must not be .

refHwnd  IntPtr
Address of a variable that receives a handle to the window containing the object specified in acc parameter.

If this value is Zero after the call, the object is not contained within a window; for example, the mouse pointer is not contained within a window.

Return Value

HResult
If the function succeeds, the return value is S_OK.

If the function fails, the return value is a different HResult value.

Remarks

See Also