Location: Symbol Reference > Classes > TJwWTSSession Class > TJwWTSSession Methods > TJwWTSSession.Shadow Method
JWSCL Documentation
ContentsIndexHome
PreviousUpNext
TJwWTSSession.Shadow Method
Pascal
function Shadow(const Hotkey: DWORD = VK_MULTIPLY; const HKModifier: DWORD = MOD_CONTROL): Boolean;
Parameters 
Description 
const Hotkey: DWORD = VK_MULTIPLY 
The virtual-key code that represents the key to press to stop remote control of the session. The key that is defined in this parameter is used with the HotkeyModifiers parameter. Default is VK_MULTIPY (* on the numeric keypad).  
const HKModifier: DWORD = MOD_CONTROL 
The virtual modifier that represents the key to press to stop remote control of the session. The virtual modifier is used with the Hotkey parameter. The value can be:  

If the function fails, the return value is zero. To get extended error information, call GetLastError

The Shadow function starts the remote control of another Terminal Services session. You must call this function from a remote session.

By default the console session cannot be shadowed. You can change this by modifying the following registry keys:

HKLMSYSTEMCurrentControlSetControlTerminal ServerWinStationsConsole
"fInheritShadow" = REG_DWORD:1
"Shadow" = REG_DWORD:1

Where Shadow can be one of the TJwShadowMode values.

Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc.
What do you think about this topic? Send feedback!