CFtpClient::GetServerInformation Method  
 
INT GetServerInformation(
  LPTSTR lpszSystemInfo,  
  INT nMaxLength  
);

The GetServerInformation method returns information about the server, typically including the operating system type, version and platform.

Parameters

lpszSystemInfo
The buffer that will contain the system information returned by the server.
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 SYST command to the server. The first word will identify the type of operating system. The format for the remaining information depends on the server type. Typically it is a description of the operating system version and hardware platform.

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