IUIAutomationPatternHandler::CreateClientWrapper method

Creates an object that enables a client application to interact with a custom control pattern.

Syntax


HRESULT CreateClientWrapper(
  [in]           IUIAutomationPatternInstance *pPatternInstance,
  [out, retval]  IUnknown **pClientWrapper
);

Parameters

pPatternInstance [in]

Type: IUIAutomationPatternInstance*

A pointer to the instance of the control pattern that will be used by the wrapper.

pClientWrapper [out, retval]

Type: IUnknown**

Receives a pointer to the wrapper object.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The wrapper object exposes methods and properties of the control pattern. The implementation of the wrapper class passes these calls to Microsoft UI Automation by calling CallMethod and GetProperty.

Requirements

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista, Windows XP with SP3 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008, Windows Server 2003 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

UIAutomationCore.h (include UIAutomation.h)

IDL

UIAutomationCore.idl

See also

IUIAutomationPatternHandler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft