IWTSVirtualChannelManager::CreateListener method (tsvirtualchannels.h)

Returns an instance of a listener object that listens on a specific endpoint.

Syntax

HRESULT CreateListener(
  [in]            const char           *pszChannelName,
  [in]            ULONG                uFlags,
  [in, optional]  IWTSListenerCallback *pListenerCallback,
  [out, optional] IWTSListener         **ppListener
);

Parameters

[in] pszChannelName

The endpoint name on which the listener will listen. This is a string value, the length of which is limited to MAX_PATH number of characters.

[in] uFlags

This parameter is reserved and must be set to zero.

[in, optional] pListenerCallback

Returns a listener callback (IWTSListenerCallback) that will receive notifications for incoming connections.

[out, optional] ppListener

An instance of the IWTSListener object.

Return value

Returns S_OK on success.

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header tsvirtualchannels.h

See also

IWTSListener

IWTSListenerCallback

IWTSVirtualChannelManager