ITsSbPlacement::CreateEnvironmentForTarget method
Prepares the specified environment to host the target that was returned by load balancing.
Syntax
HRESULT CreateEnvironmentForTarget(
[in] ITsSbClientConnection *pConnection,
[in] ITsSbPlacementNotifySink *pPlacementSink
);
Parameters
pConnection [in]
A pointer to a ITsSbClientConnection client connection object.pPlacementSink [in]
A pointer to a ITsSbPlacementNotifySink placement sink object.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
Use an ITsSbPlacementNotifySink placement sink object to return the created environment to Remote Desktop Connection Broker (RD Connection Broker).
After RD Connection Broker receives a load-balancing result, it calls QueryEnvironmentForTarget to determine whether the environment is present and ready. If it is not ready, RD Connection Broker calls CreateEnvironmentForTarget to prepare the environment.
Requirements
Minimum supported client |
None supported [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
IDL |
Sbtsv.idl |
See also
Send comments about this topic to Microsoft
Build date: 10/26/2012