WsSetListenerProperty function (webservices.h)
Sets a Listenerobject property.
Syntax
HRESULT WsSetListenerProperty(
[in] WS_LISTENER *listener,
[in] WS_LISTENER_PROPERTY_ID id,
const void *value,
[in] ULONG valueSize,
[in, optional] WS_ERROR *error
);
Parameters
[in] listener
A pointer to the Listener object with the property to set. The pointer must reference a valid WS_LISTENER and may not be NULL.
[in] id
Identifier of the property to set.
value
A void pointer to the property value to set. The pointer must have an alignment compatible with the type of the property.
[in] valueSize
The size in bytes of the property value.
[in, optional] error
A pointer to a WS_ERROR object where additional information about the error should be stored if the function fails.
Return value
This function can return one of these values.
Return code | Description |
---|---|
|
The property id was not supported for this object.
The specified size was not appropriate for the property. |
|
There was not enough space to set the property value. |
|
This function may return other errors not listed above. |
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 |