OleAccWindowFromAccessibleObject Method
Retrieves the window handle that corresponds to a particular instance of an IAccessible interface.
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", SetLastError = true)]
public static HResult WindowFromAccessibleObject(
IAccessible acc,
ref IntPtr refHwnd
)
<DllImportAttribute("OleAcc.dll", SetLastError := true>]
Public Shared Function WindowFromAccessibleObject (
acc As IAccessible,
ByRef refHwnd As IntPtr
) As HResult
Dim acc As IAccessible
Dim refHwnd As IntPtr
Dim returnValue As HResult
returnValue = OleAcc.WindowFromAccessibleObject(acc,
refHwnd)
public:
[DllImportAttribute(L"OleAcc.dll", SetLastError = true)]
static HResult WindowFromAccessibleObject(
IAccessible^ acc,
IntPtr% refHwnd
)
[<DllImportAttribute("OleAcc.dll", SetLastError = true)>]
static member WindowFromAccessibleObject :
acc : IAccessible *
refHwnd : IntPtr byref -> HResult
No code example is currently available or this language may not be supported.
- 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.
HResult
If the function succeeds, the return value is
S_OK.
If the function fails, the return value is a different
HResult value.