WS_SERVICE_HOST_STATE enumeration (webservices.h)

The states that a service host can be in.

Syntax

typedef enum {
  WS_SERVICE_HOST_STATE_CREATED = 0,
  WS_SERVICE_HOST_STATE_OPENING = 1,
  WS_SERVICE_HOST_STATE_OPEN = 2,
  WS_SERVICE_HOST_STATE_CLOSING = 3,
  WS_SERVICE_HOST_STATE_CLOSED = 4,
  WS_SERVICE_HOST_STATE_FAULTED = 5
} WS_SERVICE_HOST_STATE;

Constants

 
WS_SERVICE_HOST_STATE_CREATED
Value: 0
WS_SERVICE_HOST_STATE_OPENING
Value: 1
WS_SERVICE_HOST_STATE_OPEN
Value: 2
WS_SERVICE_HOST_STATE_CLOSING
Value: 3
WS_SERVICE_HOST_STATE_CLOSED
Value: 4
WS_SERVICE_HOST_STATE_FAULTED
Value: 5

Remarks

The following are the state transitions for a service host.

Diagram showing the possible states of a service host object and the transitions between them.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Header webservices.h