Desktop Functions: Smart Device Functions:
|
WindowFromAccessibleObject (oleacc)
The WindowFromAccessibleObject function retrieves the window handle that corresponds to a given instance of an IAccessible interface. C# Signature:
[DllImport("oleacc.dll")] VB .NET Signature:
Declare Function WindowFromAccessibleObject Lib "oleacc.dll" (ByVal pacc as IAccessible, ByRef phwnd as IntPtr) As Integer User-Defined Types:None. Notes:None. Tips & Tricks:If you are calling this API from .NET Framework version 2.0 or higher, be sure to put the STAThread attribute on your main(), or manually set the ApartmentState property of the thread you are calling this from to ApartmentStates.STA, or you will get an error code of 0x8001010D which is a “cannot call out exception because of an input synchronous call”. Sample Code:Please add some! Alternative Managed API:TODO Please edit this page!Do you have...
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more). |
|