共用方式為


IRDPViewerInputSink::SendMouseWheelEvent 方法 (rdpencomapi.h)

[自 Windows 10 1709 版起,不再提供用於 UWP 應用程式的 IRDPViewerInputSink 介面。 傳統型應用程式仍支援它。]

傳送滑鼠滾輪事件訊息。

語法

HRESULT SendMouseWheelEvent(
  UINT16 wheelRotation
);

參數

wheelRotation

滾輪移動的遞增數目。

傳回值

如果方法成功,傳回值會 S_OK。 否則,傳回值是錯誤碼。

規格需求

需求
最低支援的用戶端 Windows 8.1 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2012 R2 [僅限傳統型應用程式]
目標平台 Windows
標頭 rdpencomapi.h
Dll RdpEncom.dll

另請參閱

IRDPViewerInputSink