| INT GetServerStatus( |
| |
LPTSTR lpszStatus, |
|
| |
INT nMaxLength |
|
| ); |
| INT GetServerStatus( |
| |
CString& strStatus |
|
| ); |
The GetServerStatus method requests that the server
return status information about itself.
Parameters
- lpszStatus
- The buffer that will contain the system status
returned by the server. The alternate form of this method also
accepts a CString object which will contain the system
status string.
- nMaxLength
- The maximum number of characters that can be copied into the
buffer, including the terminating null character.
Return Value
If the method succeeds, the return value is the server result
code. If the method fails, the return value is FTP_ERROR. To get
extended error information, call GetLastError.
Remarks
This method sends the STAT command to the server. The
format for the information returned depends on the server type.
Typically it is a description of the server platform, version,
current user and file transfer options.
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: csftpv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|