| Previous | Next |
| WDSTPC_E_CALLBACKS_NOT_REG | WDSTPC_E_ALREADY_IN_PROGRESS |
WDSTPC_E_ALREADY_COMPLETED
WDSTPC_E_ALREADY_COMPLETED indicates that the transport session is past the active download phase. WDS exposes a completion callback and status query API; consumers should use that terminal state to stop issuing start/progress operations against the same session handle.
Make completion a one-way state in the client wrapper
- Record the
PFN_WdsTransportClientSessionCompleteinvocation and its final status exactly once. - After completion, query or report the final transfer status instead of starting the same session handle again.
- If the application needs another download, initialize a new session request rather than recycling terminal state.
The WDS transport client API distinguishes session setup, transfer start, status query, wait, cancel, and close operations. Treating completion as a durable terminal state prevents duplicate completion handling and late work from racing with cleanup. When this code is unexpected, inspect whether two threads both react to the same completion signal or whether a retry path retained an old session handle.
WDS transport client functions · WDS API overview · StartSession
Looking for a different code? Search another status or error code.