CFtpServer::GetCommandParamCount Method  
 
INT GetCommandParamCount
  UINT nClientId  
);

Return the number of command parameters for the last command issued by the client.

Parameters

nClientId
An unsigned integer which uniquely identifies the client session.

Return Value

An integer value which specifies the number of parameters that were specified in the last command issued by the client. If the command did not include any parameters, this method will return zero. If the client has not issued a command, or the client session ID is invalid, this method will return -1.

Remarks

The GetCommandParamCount method is used to determine the number of parameters specified in the last client command, and the maximum value that may be passed as the parameter index to the GetCommandParam method.

Requirements

Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: csftsv10.lib

See Also

GetCommandLine, GetCommandName, GetCommandParam