共用方式為


SetInteractionConfigurationInteractionContext 函式 (interactioncontext.h)

設定 Interaction Context 對象來處理指定的操作。

語法

HRESULT SetInteractionConfigurationInteractionContext(
  [in] HINTERACTIONCONTEXT                     interactionContext,
  [in] UINT32                                  configurationCount,
  [in] const INTERACTION_CONTEXT_CONFIGURATION *configuration
);

參數

[in] interactionContext

互動內容的句柄。

[in] configurationCount

正在設定的互動數目。

[in] configuration

要啟用此 互動內容 對象的互動。

傳回值

如果此函式成功,則會傳回S_OK。

否則,它會傳回 HRESULT 錯誤碼。

言論

根據預設,不會設定任何組態旗標(未啟用任何互動)。 每個互動都必須明確宣告。

組態變更只會套用至新的互動。

要求

要求 價值
最低支援的用戶端 Windows 8 [僅限傳統型應用程式]
支援的最低伺服器 不支援
目標平臺 窗戶
標頭 interactioncontext.h
連結庫 Ninput.lib
DLL Ninput.dll;Edgehtml.dll

另請參閱

GetInteractionConfigurationInteractionContext 函式

INTERACTION_CONTEXT_CONFIGURATION 結構