IProxyProviderWinEventHandler::RespondToWinEvent Method
Handles a WinEvent.
Syntax
HRESULT RespondToWinEvent( DWORD idWinEvent, HWND hwnd, LONG idObject, LONG idChild, IProxyProviderWinEventSink *pSink );
Parameters
- idWinEvent
[in] The identifier of the incoming WinEvent. For a list of WinEvent IDs, see Event Constants.- hwnd
[in] The handle of the window for which the WinEvent was fired. This should also be the window for which the proxy was created.- idObject
[in] The object identifier (OBJID_*) of the accessible object associated with the event.- idChild
[in] The child identifier of the element associated with the event, or CHILDID_SELF if the element is not a child.- pSink
[in] The address of the IProxyProviderWinEventSink interface provided by the UI Automation core. Any event that the proxy needs to raise in response to the WinEvent being handled should be added to the sink.
Return Value
Returns S_OK if successful, or an error value otherwise.
Remarks
The provider should review the event data. If the provider needs to raise a UI Automation event in response, the data for that event should be added to the pSink event sink.
See Also