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

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

   
Windows version Windows Vista Windows Server 2008
Target Platform Windows
Header tsvirtualchannels.h

See Also

IWTSListener

IWTSListenerCallback

IWTSVirtualChannelManager