Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

IAccessibleWindowlessControl::ObjectFromEvent method

[This documentation is preliminary and is subject to change.]

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: long

The 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

IAccessibleWindowlessControl

 

 

Send comments about this topic to Microsoft

Build date: 6/6/2012

Community Additions

Show:
© 2015 Microsoft