Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

WS_CHANNEL_STATE enumeration

The different states that a channel can be in.

Syntax


enum WS_CHANNEL_STATE {  WS_CHANNEL_STATE_CREATED    = 0, 
  WS_CHANNEL_STATE_OPENING, 
  WS_CHANNEL_STATE_ACCEPTING, 
  WS_CHANNEL_STATE_OPEN, 
  WS_CHANNEL_STATE_FAULTED, 
  WS_CHANNEL_STATE_CLOSING, 
  WS_CHANNEL_STATE_CLOSED 

};

Constants

WS_CHANNEL_STATE_CREATED
WS_CHANNEL_STATE_OPENING
WS_CHANNEL_STATE_ACCEPTING
WS_CHANNEL_STATE_OPEN
WS_CHANNEL_STATE_FAULTED
WS_CHANNEL_STATE_CLOSING
WS_CHANNEL_STATE_CLOSED

Remarks

The following are the state transitions for a channel.

Dd401787.ChannelStates(en-us,VS.85).png

A channel may move to the WS_CHANNEL_STATE_FAULTED state even if WsAbortChannel was never called. This will only occur if the channel can no longer be used.

Note that only the valid state transitions are shown. Using a function not shown for a given state will result in an WS_E_INVALID_OPERATION error being returned from the function (or crash in the case of WsFreeChannel). For information on error codes, seeWindows Web Services Return Values.

Requirements

Minimum supported client

Windows 7 [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

WebServices.h

 

 

Community Additions

Show:
© 2017 Microsoft