CUIAutomationRegistrar object

Implements the IUIAutomationRegistrar interface.

Syntax

   [
        uuid(6e29fabf-9977-42d1-8d0e-ca7e61ad87e6),
        version(1.0), 
        helpstring("Class for registering UIAutomation patterns, properties and events.")
    ]
    coclass CUIAutomationRegistrar
    {
        [default] interface IUIAutomationRegistrar;
    }

Examples

The following shows how to create the CUIAutomationRegistrar object.

#include <uiautomation.h>

HRESULT CreateUIAutomationRegistrar(IUIAutomationRegistrar **ppRegistrar)
{
    if (ppRegistrar == NULL)
        return E_INVALIDARG;

    return CoCreateInstance(CLSID_CUIAutomationRegistrar, NULL, CLSCTX_INPROC_SERVER, 
        IID_IUIAutomationRegistrar, (void **)ppRegistrar);
}

Requirements

Minimum supported client

Windows XP [desktop apps | UWP apps]

Minimum supported server

Windows Server 2003 [desktop apps | UWP apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

IID

CLSID_CUIAutomationRegistrar is defined as 6e29fabf-9977-42d1-8d0e-ca7e61ad87e6

See also

UI Automation Objects