UiaReturnRawElementProvider Function

Gets an interface to the UI Automation provider for a window.

Syntax


LRESULT UiaReturnRawElementProvider(          HWND hwnd,
    WPARAM wparam,
    LPARAM lparam,
    IRawElementProviderSimple *lparam
);

Parameters

hwnd
[in] The window containing the element served by the provider.
wparam
[in] The WPARAM argument of the WM_GETOBJECT message.
lparam
[in] The LPARAM argument of the WM_GETOBJECT message. If this is not UiaRootObjectId, the function returns 0.
lparam
[in] A pointer to the IRawElementProviderSimple interface of the UI Automation provider.

Return Value

The key for the client process to connect to the server process through UI Automation.

Remarks

This method is called by a control when it receives the WM_GETOBJECT message, to provide the UI Automation system with the UI Automation provider for the control. The control's window procedure should return the result of this function.

Function Information

Stock Implementation uiautomationcore.dll
Custom Implementation No
Header uiautomationcoreapi.h
Import library uiautomationcore.lib
Minimum operating systems Windows XP

Community Additions

Show: