_WTS_SERVICE_STATE structure (wtsdefs.h)

Contains information about changes in the state of the Remote Desktop Services service.

Syntax

typedef struct _WTS_SERVICE_STATE {
  WTS_RCM_SERVICE_STATE RcmServiceState;
  WTS_RCM_DRAIN_STATE   RcmDrainState;
} _WTS_SERVICE_STATE, WTS_SERVICE_STATE, *PWTS_SERVICE_STATE, _WRDS_SERVICE_STATE;

Members

RcmServiceState

A value of the WTS_RCM_SERVICE_STATE enumeration type that specifies whether the service is starting or stopping.

RcmDrainState

A value of the WTS_RCM_DRAIN_STATE enumeration type that specifies whether the RD Session Host server is changing its drain state.

Remarks

This structure is used by the NotifyServiceStateChange method.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Header wtsdefs.h (include Wtsprotocol.h)