ITsSbOrchestration::P repareTargetForConnect 方法 (sbtsv.h)

准备客户端连接的目标。

语法

HRESULT PrepareTargetForConnect(
  [in] ITsSbClientConnection        *pConnection,
  [in] ITsSbOrchestrationNotifySink *pOrchestrationNotifySink
);

参数

[in] pConnection

指向 ITsSbClientConnection 客户端连接对象的指针。

[in] pOrchestrationNotifySink

指向 ITsSbOrchestrationNotifySink 业务流程通知接收器对象的指针。

返回值

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

注解

此方法对于将用户重定向到虚拟桌面的插件特别有用。 远程桌面连接代理 (RD 连接代理) 放置成功完成后调用此方法。 业务流程可以包括唤醒虚拟机并确定其 IP 地址。 此方法的实现应确保目标已准备好接受客户端连接。

要求

要求
最低受支持的客户端 无受支持的版本
最低受支持的服务器 Windows Server 2012
目标平台 Windows
标头 sbtsv.h

另请参阅

ITsSbClientConnection

ITsSbOrchestration

ITsSbOrchestrationNotifySink