WsResetListener function
Resets a Listener object so it can be reused. Use of this function requires that the Listener state be set to WS_LISTENER_STATE_CREATED or WS_LISTENER_STATE_CLOSED.
Syntax
HRESULT WINAPI WsResetListener( _In_ WS_LISTENER* listener, _In_opt_ WS_ERROR* error );
Parameters
- listener [in]
-
A pointer to the Listener object to reset. The pointer must reference a valid WS_LISTENER.
- 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 listener was in an inappropriate state. |
Remarks
Before reusing a listener, this function should be called.
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|