IWTSProtocolLogonErrorRedirector::RedirectMessage method

[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(
  LPCWSTR                             pszCaption,
  LPCWSTR                             pszMessage,
  UINT                                uType,
  WTS_LOGON_ERROR_REDIRECTOR_RESPONSE *pResponse
);

Parameters

pszCaption

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

pszMessage

A pointer to a string that contains the logon message.

uType

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

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

   
Windows version None supported Windows Server 2008 R2
Target Platform Windows
Header wtsprotocol.h

See Also

IWTSProtocolLogonErrorRedirector