IWTSVirtualChannelManager::CreateListener method

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

Syntax


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

Parameters

pszChannelName [in]

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.

ulFlags [in]

This parameter is reserved and must be set to zero.

pListenerCallback [in, optional]

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

ppListener [out, optional]

An instance of the IWTSListener object.

Return value

Returns S_OK on success.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

TsVirtualChannels.h

IDL

TsVirtualChannels.idl

See also

IWTSListener
IWTSListenerCallback
IWTSVirtualChannelManager

 

 

Show: