共用方式為


IHandwritingInputRoutingCallback::GetThreadIdForInput 方法 (shellhandwriting.h)

擷取輸入目標 UI 之訊息處理線程的標識碼。

語法

HRESULT GetThreadIdForInput(
  [in]  UINT32 pointerId,
  [in]  POINT  *targetScreenPoint,
  [in]  HWND   targetHWnd,
  [out] UINT32 *uiThreadId
);

參數

[in] pointerId

與輸入相關聯的指標標識碼。

[in] targetScreenPoint

指標的螢幕座標,以像素為單位。

[in] targetHWnd

輸入目標。

[out] uiThreadId

輸入目標UI之訊息處理線程的標識碼。

傳回值

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

規格需求

需求
標頭 shellhandwriting.h