WsSetChannelProperty function
Sets a property of the channel.
Syntax
HRESULT WINAPI WsSetChannelProperty( _In_ WS_CHANNEL* channel, _In_ WS_CHANNEL_PROPERTY_ID id, const void* value, _In_ ULONG valueSize, _In_opt_ WS_ERROR* error );
Parameters
- channel [in]
-
A pointer to the Channel on which to set the property and may not be NULL.
- id [in]
-
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.
- valueSize [in]
-
The size in bytes of of the property value.
- error [in, optional]
-
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
|
Minimum supported client | Windows 7 [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps | Windows Store apps] |
|
Header |
|
|
Library |
|
|
DLL |
|