Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 | Windows Store apps]

Minimum supported server

Windows Server 2003 [desktop apps | Windows Store 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

 

 

Community Additions

ADD
Show:
© 2015 Microsoft