IWTSVirtualChannelManager::CreateListener method

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

Syntax

HRESULT CreateListener(
  const char           *pszChannelName,
  ULONG                uFlags,
  IWTSListenerCallback *pListenerCallback,
  IWTSListener         **ppListener
);

Parameters

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.

uFlags

This parameter is reserved and must be set to zero.

pListenerCallback

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

ppListener

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
Target Platform Windows
Header tsvirtualchannels.h

See also

IWTSListener

IWTSListenerCallback

IWTSVirtualChannelManager