WS_SET_LISTENER_PROPERTY_CALLBACK callback function (webservices.h)

Handles the WsSetListenerProperty call for a WS_CUSTOM_CHANNEL_BINDING.

Syntax

WS_SET_LISTENER_PROPERTY_CALLBACK WsSetListenerPropertyCallback;

HRESULT WsSetListenerPropertyCallback(
  [in]           void *listenerInstance,
  [in]           WS_LISTENER_PROPERTY_ID id,
                 const void *value,
  [in]           ULONG valueSize,
  [in, optional] WS_ERROR *error
)
{...}

Parameters

[in] listenerInstance

The pointer to the state specific to this listener instance, as created by the WS_CREATE_LISTENER_CALLBACK.

[in] id

The id of the property to set.

A custom listener can decide which properties to support.

value

The pointer to the property value to set. The pointer must have an alignment compatible with the type of the property.

[in] valueSize

The size of the property value.

[in, optional] error

Specifies where additional error information should be stored if the function fails.

Return value

Return code Description
E_INVALIDARG
The property id was not supported for this object.

The specified size was not appropriate for the property.

E_OUTOFMEMORY
There was not enough space to set the property value.
Other Errors
This function may return other errors not listed above.

Remarks

See WsSetListenerProperty for information about the contract of this API.

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