Share via


LegacyIAccessiblePattern_SetValue函式 (uiautomationcoreapi.h)

注意 此函式已被取代。 用戶端應用程式應該改用 Microsoft 使用者介面自動化 元件物件模型 (COM) 介面。
 
設定節點的 Microsoft Active Accessibility 值屬性。

語法

HRESULT LegacyIAccessiblePattern_SetValue(
  [in] HUIAPATTERNOBJECT hobj,
  [in] LPCWSTR           szValue
);

參數

[in] hobj

類型: HUIAPATTERNOBJECT

控制件模式物件。

[in] szValue

類型: LPCWSTR

包含值的當地語系化字串。

傳回值

類型: HRESULT

如果成功或錯誤值,則傳回S_OK。

規格需求

需求
最低支援的用戶端 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
標頭 uiautomationcoreapi.h
程式庫 Uiautomationcore.lib
Dll Uiautomationcore.dll