共用方式為


IWTSProtocolLogonErrorRedirector::RedirectStatus 方法 (wtsprotocol.h)

[IWTSProtocolLogonErrorRedirector::RedirectStatus 已不再可供 Windows Server 2012 使用。 請改用 IWRdsProtocolLogonErrorRedirector::RedirectStatus。]

查詢通訊協定,以瞭解如何重新導向用戶端登入狀態更新。

語法

HRESULT RedirectStatus(
  [in]  LPCWSTR                             pszMessage,
  [out] WTS_LOGON_ERROR_REDIRECTOR_RESPONSE *pResponse
);

參數

[in] pszMessage

包含登入狀態消息之字串的指標。

[out] pResponse

包含回應 之WTS_LOGON_ERROR_REDIRECTOR_RESPONSE 列舉的指標。 這可以是下列其中一個值。

傳回值

當您實作此方法時,如果函式成功,請 傳回S_OK 。 如果失敗,則傳回 指出錯誤的 HRESULT 值。 如需常見錯誤碼的清單,請參閱 一般 HRESULT 值

規格需求

需求
最低支援的用戶端 都不支援
最低支援的伺服器 Windows Server 2008 R2
目標平台 Windows
標頭 wtsprotocol.h

另請參閱

IWTSProtocolLogonErrorRedirector