設定應用程式的 CoreIndependentInputSource 或 CoreComponentInputSource的輸入來源。
語法
HRESULT SetInputSource(
[in] IUnknown *value
);
參數
[in] value
輸入來源基底 COM 介面的指標。
輸入來源可以是 IDCompositionVisual2 或 Windows.UI.Composition.Visual
傳回值
如果此方法成功,則會傳回 S_OK。 否則,它會傳回 HRESULT 錯誤碼。
要求
| 要求 | 價值 |
|---|---|
| 目標平臺 | 窗戶 |
| 標頭 | corewindow.h |