Initializes the plug-in and returns a value that indicates the redirection capabilities of the plug-in. Terminal Services Session Broker (TS Session Broker) calls this method immediately after it instantiates the plug-in class.
Syntax
HRESULT Initialize(
[out] DWORD *PluginCapabilities
);
Parameters
- PluginCapabilities [out]
-
A pointer to a value that indicates the redirection capabilities of the plug-in.
| Value | Meaning |
- 0
| The plug-in redirects only within a farm in TS Session Broker. If this value is returned, TS Session Broker does not call the WTSSBX_GetUserExternalSession method on the plug-in.
|
- 1
| The plug-in redirects within a farm in TS Session Broker, and the plug-in implements WTSSBX_GetUserExternalSession to redirect outside the farm.
|
Return Value
Returns S_OK if successful.
Remarks
TS Session Broker calls Initialize immediately after it instantiates the COM class. The plug-in should return information about its redirection capabilities by using the Initialize method.
Your implementation of Initialize must return S_OK immediately if successful.
Requirements
| Minimum supported client | None supported |
| Minimum supported server | Windows Server 2008 |
| Header | Tssbx.h |
| IDL | Tssbx.idl |
| IID | IID_IWTSSBPlugin is defined as DC44BE78-B18D-4399-B210-641BF67A002C |
See Also
- IWTSSBPlugin
Send comments about this topic to Microsoft
Build date: 10/19/2009