共用方式為


IUIAutomation::CreateProxyFactoryEntry 方法 (uiautomationclient.h)

建立 Proxy Factory 物件的新實例。

語法

HRESULT CreateProxyFactoryEntry(
  [in]          IUIAutomationProxyFactory      *factory,
  [out, retval] IUIAutomationProxyFactoryEntry **factoryEntry
);

參數

[in] factory

類型: IUIAutomationProxyFactory*

Proxy Factory 物件的指標。

[out, retval] factoryEntry

類型: IUIAutomationProxyFactoryEntry**

接收 Proxy Factory 物件新建立實例的指標。

傳回值

類型: HRESULT

如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。

備註

使用 IUIAutomationProxyFactoryMapping 介面,在可用的 Proxy 數據表中輸入 Proxy Factory。

規格需求

需求
最低支援的用戶端 Windows 7、Windows Vista sp2 和 Platform Update for Windows Vista、Windows XP with SP3 和 Platform Update for Windows Vista [僅限桌面應用程式]
最低支援的伺服器 Windows Server 2008 R2、Windows Server 2008 SP2 和 Platform Update for Windows Server 2008、Windows Server 2003 SP2 和 Platform Update for Windows Server 2008 [僅限桌面應用程式]
目標平台 Windows
標頭 uiautomationclient.h (包含 UIAutomation.h)

另請參閱

IUIAutomation