CRshClient::CRshClient  
 
CRshClient();

The CRshClient constructor initializes the class library and validates the license key at runtime.

Warning The Remote Shell (rsh/rcmd) protocol is deprecated, insecure, and should never be used. This protocol transmits user credentials and command data in plaintext, making it vulnerable to interception, spoofing, and other network-based attacks. Support for this protocol will be removed in a future release. For secure remote command execution and interactive terminal sessions, it is recommended you use the Secure Shell class.

Remarks

If the constructor fails to validate the runtime license, subsequent methods in this class will fail. If the product is installed with an evaluation license, then the application will only function on the development system and cannot be redistributed.

The constructor calls the RshInitialize function to initialize the library, which dynamically loads other system libraries and allocates thread local storage. If you are using this class within another DLL, it is important that you do not create or destroy an instance of the class from within the DllMain function because it can result in deadlocks or access violation errors. You should not declare static or global instances of this class within another DLL if it is linked with the C runtime library (CRT) because it will automatically call the constructors and destructors for static and global C++ objects and has the same restrictions.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csrshv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also