| INT WINAPI SshGetExitCode(
|
| |
HCLIENT hClient |
|
| );
|
The SshGetExitCode function returns the exit code for the
remote session.
Parameters
- hClient
- Handle to the client session.
Return Value
If the function succeeds, the return value is the numeric exit
code. If the function fails, the return value is SSH_ERROR. To get
extended error information, call SshGetLastError.
Remarks
This function should only be called after the command has
completed and the SshRead function has returned a value of
zero. In most cases, an exit code value of zero indicates success,
while any other value indicates an error condition.
Note that the actual value is application dependent and is only
meaningful in the context of that particular program. A program may
choose or use exit codes in a non-standard way, such as having
certain non-zero values indicate success.
Requirements
Client: Requires Windows 7, Windows Vista or Windows
XP.
Server: Requires Windows Server 2008 or Windows Server
2003.
Header: Include cstools7.h.
Library: Use cstshav7.lib.
See Also
SshGetStatus
|