IWRdsProtocolShadowConnection::Start method (wtsprotocol.h)
Notifies the protocol that shadowing has started.
HRESULT Start( [in] WCHAR *pTargetServerName, [in] DWORD TargetSessionId, [in] BYTE HotKeyVk, [in] USHORT HotkeyModifiers, [in] IWRdsProtocolShadowCallback *pShadowCallback );
A pointer to a string that contains the name of the shadowing server.
An integer that specifies the ID of the target session to shadow.
The virtual key code of the key that must be pressed to stop shadowing. This key is used in combination with the HotkeyModifiers parameter.
The virtual modifier that specifies the modifier key to press to stop shadowing. Modifier keys include the Shift, Alt, and Ctrl keys. The modifier key is used in combination with the key signified by the HotKeyVk parameter.
A pointer to an IWRdsProtocolShadowCallback interface that the protocol can use to call back into the Remote Desktop Services service.
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.
The Remote Desktop Services service also changes the session state on the shadowed client to reflect the fact that it is being shadowed.
|Minimum supported client||None supported|
|Minimum supported server||Windows Server 2012|