CUIAutomation object

Implements the IUIAutomation interface.

Syntax

    [
        uuid(ff48dba4-60ef-4201-aa87-54103eef594e),
        version(1.0), 
        helpstring("The Central Class for UIAutomation")
    ]
    coclass CUIAutomation
    {
        [default] interface IUIAutomation;
    }

Examples

The following shows how to create the CUIAutomation object.

#include <uiautomation.h>

// CoInitialize must be called before calling this function, and the  
// caller must release the returned pointer when finished with it.
// 
HRESULT InitializeUIAutomation(IUIAutomation **ppAutomation)
{
    return CoCreateInstance(CLSID_CUIAutomation, NULL,
        CLSCTX_INPROC_SERVER, IID_IUIAutomation, 
        reinterpret_cast<void**>(ppAutomation));
}

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

UIAutomationClient.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

CLSID

CLSID_CUIAutomation is defined as ff48dba4-60ef-4201-aa87-54103eef594e

See also

UI Automation Objects