| Previous | Next |
| WS_S_ASYNC | PEER_S_GRAPH_DATA_CREATED |
WS_S_END
Windows Web Services channel has no more messages
WS_S_END is HRESULT 3997697 (0x003D0001) from winerror.h. AllStat describes it as “There are no more messages available on the channel.” In the Windows Web Services asynchronous or channel receive state, the value reports a nonfailure state that must not be collapsed into plain S_OK.
Accepting this result requires proving the documented state rather than checking only SUCCEEDED(hr).
Where the status is encountered
- Windows Web Services channel send and receive operations; capture the exact API, object, and phase because the same numeric success severity does not define the state by itself.
- WS_ASYNC_CONTEXT callback completion;
- Session shutdown and end-of-input handling;
Keep it attached to the operation that returned it. Interpreting it outside that API contract can turn a normal continuation or partial result into an incorrect retry or false completion.
What must be true before accepting it
Verify that the channel type and session state make end-of-input expected and every prior message has been processed. That proof prevents usable partial state from being confused with full completion.
Also confirm that returned outputs belong to the current operation generation and were not inherited from an earlier attempt.
Difference from nearby results
WS_S_ASYNC means completion is pending; it is final successful end-of-input.
Using one generic success branch for it and its neighbor can lose output, repeat work, or misreport completion.
Correct handling and recovery
Finish enumeration or session shutdown, release message resources, and do not poll the same terminal state. Reopen a channel only for a new conversation.
Retry after it only when a recorded input, capability, resource, policy, or state has changed.
Practical scenario
A reply channel receives its single response and a later receive returns it. The client closes the channel without logging an error.
References
- Microsoft: Windows Web Services return values
- Microsoft: Windows Web Services asynchronous model
- Microsoft: WsReceiveMessage
- Microsoft: HRESULT values
Looking for a different code? Search another status or error code.
