IUIAutomationRegistrar::RegisterEvent Method Home
IUIAutomationRegistrar::RegisterEvent Method

Registers a third-party Microsoft UI Automation event.

Syntax

HRESULT RegisterEvent(      
    UIAutomationEventInfo *event,     EVENTID *eventId );

Parameters

event
[in] The address of a UIAutomationEventInfo structure that contains information about the event to register.
eventId
[out] The address of a variable that receives the event identifier. For a list of event IDs, see Event Identifiers.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The event ID can be used in various event methods, and as a WinEvent value for events in IAccessibleEx implementations.

See Also

IUIAutomationRegistrar
© 2009 Microsoft Corporation. All rights reserved.   Terms of Use | Trademarks | Privacy Statement
Page view tracker
Rate the Lightweight library
x
Lightweight builds on ScriptFree (loband) by adding features you've requested: a SearchBox and default code language selection.
Do you like the SearchBox?
Do you like the tabbed code blocks?
How useful is this topic?
Tell us more.
Thanks
x
You're helping to improve MSDN Online.
Feedback
Switch View
Classic
Lightweight Beta
ScriptFree
Switch View