Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IRawElementProviderSimple::ProviderOptions property

Specifies the type of Microsoft UI Automation provider; for example, whether it is a client-side (proxy) or server-side provider.

This property is read-only.

Syntax


HRESULT get_ProviderOptions(
  [out, retval]  ProviderOptions *pRetVal
);

Property value

Type: ProviderOptions*

A combination of values that identify the type of the provider. This parameter is passed uninitialized.

Remarks

The method must return either ProviderOptions_ServerSideProvider or ProviderOptions_ClientSideProvider.

UI Automation handles the various types of providers differently. For example, events from a server-side provider are broadcast to all listening clients, but events from client-side (proxy) providers remain in the client.

Examples

The following example implements this method for a server-side UI Automation provider.


HRESULT STDMETHODCALLTYPE Provider::get_ProviderOptions( ProviderOptions* pRetVal )
{
    *pRetVal = ProviderOptions_ServerSideProvider;
    return S_OK;
}    

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

See also

IRawElementProviderSimple

 

 

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.