Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Allows the Remote Desktop Connection (RDC) client plug-in to accept or deny a connection request for an incoming connection.
Syntax
HRESULT OnNewChannelConnection(
[in] IWTSVirtualChannel *pChannel,
[in] BSTR data,
[out] BOOL *pbAccept,
[out] IWTSVirtualChannelCallback **ppCallback
);
Parameters
[in] pChannel
An IWTSVirtualChannel object that represents the incoming connection. This object will only be connected if the connection is accepted by this method.
[in] data
This parameter is not implemented and is reserved for future use.
[out] pbAccept
Indicates whether the connection should be accepted. Receives TRUE if the connection should be accepted or FALSE otherwise.
[out] ppCallback
Receives an IWTSVirtualChannelCallback object that receives notifications for the connection. This object is created by the plug-in.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista |
Minimum supported server | Windows Server 2008 |
Target Platform | Windows |
Header | tsvirtualchannels.h |