IRDPViewerInputSink::SendSyncEvent 方法 (rdpencomapi.h)

[自 Windows 10 版本 1709 起,IRDPViewerInputSink 接口不再可用于 UWP 应用程序。 桌面应用仍支持它。]

发送事件消息以指示键盘状态的更改,例如按下 Caps Lock 键时。

语法

HRESULT SendSyncEvent(
  ULONG syncFlags
);

参数

syncFlags

有关可能的值,请参阅 RDPSRAPI_KBD_SYNC_FLAG 枚举。

返回值

如果该方法成功,则 返回值S_OK。 否则,返回值为错误代码。

要求

要求
最低受支持的客户端 Windows 8.1 [仅限桌面应用]
最低受支持的服务器 Windows Server 2012 R2 [仅限桌面应用]
目标平台 Windows
标头 rdpencomapi.h
DLL RdpEncom.dll

另请参阅

IRDPViewerInputSink