IWTSProtocolLogonErrorRedirector::RedirectMessage method (wtsprotocol.h)

[IWTSProtocolLogonErrorRedirector::RedirectMessage is no longer available for use as of Windows Server 2012. Instead, use IWRdsProtocolLogonErrorRedirector::RedirectMessage.]

Queries the protocol regarding how to redirect the logon message.

Syntax

HRESULT RedirectMessage(
  [in]  LPCWSTR                             pszCaption,
  [in]  LPCWSTR                             pszMessage,
  [in]  UINT                                uType,
  [out] WTS_LOGON_ERROR_REDIRECTOR_RESPONSE *pResponse
);

Parameters

[in] pszCaption

A pointer to a string that contains the message box caption.

[in] pszMessage

A pointer to a string that contains the logon message.

[in] uType

An integer that contains the message box type. For more information, see the MessageBox function.

[out] pResponse

A pointer to a WTS_LOGON_ERROR_REDIRECTOR_RESPONSE enumeration that specifies to the Remote Desktop Services service the preferred response for redirecting the logon message.

Return value

When you are implementing this method, return S_OK if the function succeeds. If it fails, return an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Requirements

Requirement Value
Minimum supported client None supported
Minimum supported server Windows Server 2008 R2
Target Platform Windows
Header wtsprotocol.h

See also

IWTSProtocolLogonErrorRedirector