WsFreeListener function (webservices.h)

Releases the memory resource associated with a Listener object. The Listener state represented in WS_LISTENER_STATE must be set to either WS_LISTENER_STATE_CREATED or WS_LISTENER_STATE_CLOSED to be released. If a Listener has been successfully opened, then it must be closed using WsCloseListener before it is released.

Syntax

void WsFreeListener(
  [in] WS_LISTENER *listener
);

Parameters

[in] listener

A pointer to the Listener object to release. The pointer must reference a valid WS_LISTENER returned by WsCreateListener. The referenced value may not be NULL.

Return value

None

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header webservices.h
Library WebServices.lib
DLL WebServices.dll