IMsTscAxEvents::OnRemoteProgramResult 方法

当 RemoteApp 程序向客户端控件返回结果时调用。

语法

VOID OnRemoteProgramResult(
  [in] BSTR                bstrRemoteProgram,
  [in] RemoteProgramResult lError,
  [in] VARIANT_BOOL        vbIsExecutable
);

parameters

bstrRemoteProgram [in]

RemoteApp 程序的名称。

lError [in]

尝试启动 RemoteApp 程序的结果。

remoteAppResultOk (0 (0x0) )

RemoteApp 程序已成功启动。

remoteAppResultLocked (1 (0x1) )

远程会话已锁定,无法启动 RemoteApp 程序。 用户必须输入其凭据才能解锁会话,然后启动 RemoteApp 程序。

remoteAppResultProtocolError (2 (0x2) )

RemoteApp 程序返回了协议错误。

remoteAppResultNotInWhitelist (3 (0x3) )

RemoteApp 程序不在 RD 会话主机服务器的已批准列表中。

remoteAppResultNetworkPathDenied (4 (0x4) )

RemoteApp 程序的网络路径被拒绝。

remoteAppResultFileNotFound (5 (0x5) )

找不到 RemoteApp 程序文件。

remoteAppResultFailure (6 (0x6) )

RemoteApp 程序无法启动。

remoteAppResultHookNotLoaded (7 (0x7) )

无法启动 RemoteApp 程序,因为会话当前显示安全桌面。

vbIsExecutable [in]

指示 RemoteApp 程序是直接启动的,是通过使用可执行文件名称,还是间接启动,方法是使用文件关联。

返回值

此方法不返回值。

注解

在事件接收器中实现此方法,以接收 RemoteApp 程序返回结果的通知。

此方法在ActiveX控件尝试启动 RemoteApp 程序后立即调用,lError 参数指示尝试的结果。

要求

要求
最低受支持的客户端
无受支持的版本
最低受支持的服务器
Windows Server 2008
类型库
MsTscAx.dll
DLL
MsTscAx.dll
IID
IMsTscAxEvents 定义为 336d5562-efa8-482e-8cb3-c5c0fc7a7db6

另请参阅

IMsTscAxEvents