IWTSProtocolShadowCallback::InvokeTargetShadow method

[IWTSProtocolShadowCallback::InvokeTargetShadow is no longer available for use as of Windows Server 2012. Instead, use IWRdsProtocolShadowCallback::InvokeTargetShadow.]

Instructs the Remote Desktop Services service to begin the target side of the shadow and passes any information that must be exchanged between the client and the target.

Syntax

HRESULT InvokeTargetShadow(
  WCHAR *pTargetServerName,
  ULONG TargetSessionId,
  PBYTE pParam1,
  DWORD Param1Size,
  PBYTE pParam2,
  DWORD Param2Size,
  PBYTE pParam3,
  DWORD Param3Size,
  PBYTE pParam4,
  DWORD Param4Size,
  WCHAR *pClientName
);

Parameters

pTargetServerName

A pointer to a string that contains the name of the shadow target server.

TargetSessionId

An integer that specifies the ID of the target session to shadow.

pParam1

A pointer to a byte that contains an arbitrary parameter.

Param1Size

An integer that contains the size, in bytes, of the value referenced by the pParam1 parameter.

pParam2

A pointer to a byte that contains an arbitrary parameter.

Param2Size

An integer that contains the size, in bytes, of the value referenced by the pParam2 parameter.

pParam3

A pointer to a byte that contains an arbitrary parameter.

Param3Size

An integer that contains the size, in bytes, of the value referenced by the pParam3 parameter.

pParam4

A pointer to a byte that contains an arbitrary parameter.

Param4Size

An integer that contains the size, in bytes, of the value referenced by the pParam4 parameter.

pClientName

A pointer to a string that contains the name of the shadow client.

Return Value

If the function succeeds, the function returns S_OK.

If the function fails, it returns an HRESULT value that indicates the error. Possible values include, but are not limited to, those in the following list. For a list of common error codes, see Common HRESULT Values.

Remarks

The four parameters pParam1, pParam2, pParam3, and pParam4 can contain any information that must be exchanged between the shadow client and the shadow target. The Remote Desktop Services service passes the information without modification.

Requirements

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

See Also

IWTSProtocolShadowCallback