[IWTSProtocolManager::NotifyServiceStateChange 已不再可供 Windows Server 2012 使用。 請改用 IWRdsProtocolManager::NotifyServiceStateChange.]
通知通訊協定提供者遠端桌面服務的狀態正在變更。
語法
HRESULT NotifyServiceStateChange(
[in] WTS_SERVICE_STATE *pTSServiceStateChange
);
參數
[in] pTSServiceStateChange
WTS_SERVICE_STATE 結構的指標,指定服務正在啟動、停止或變更其清空狀態。
傳回值
當您實作此方法時,如果函式成功,請 傳回S_OK 。 如果失敗,則傳回 指出錯誤的 HRESULT 值。 如需常見錯誤碼的清單,請參閱 一般 HRESULT 值。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | 都不支援 |
| 最低支援的伺服器 | Windows Server 2008 R2 |
| 目標平台 | Windows |
| 標頭 | wtsprotocol.h |