IAccessibleWindowlessControl::ObjectFromEvent method
Applies to: desktop apps only
Retrieves an IAccessible interface for the object that generated a WinEvent.
Syntax
HRESULT ObjectFromEvent(
[in] long idObject,
[out] IAccessible **ppRetVal
);
Parameters
idObject [in]
Type: longThe idObject parameter from the WinEvent that is being handled.
ppRetVal [out]
Type: IAccessible**Receives the IAccessible interface for the object.
Return value
Type: HRESULT
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code. The return value is E_INVALIDARG if no object matches the idObject parameter.
Requirements
Minimum supported client |
Windows 8 Release Preview |
Minimum supported server |
Windows Server 2012 |
Header |
UIAutomationCore.h (include UIAutomation.h) |
IDL |
UIAutomationCore.idl |
See also
Send comments about this topic to Microsoft
Build date: 7/10/2012