| UINT GetCommandUsage( |
| |
LPCTSTR lpszCommand |
|
| ); |
Return the number of times a specific command has been issued by
all clients.
Parameters
- lpszCommand
- A null-terminated string that specifies a command
name. The name is not case-sensitive, but must match a valid server
command exactly. This parameter cannot be NULL.
Return Value
If the method succeeds, the return value is the number of
times the command has been issued by all clients since the server was
started. If the command name is invalid, or the command has never
been issued, the return value will be zero.
Remarks
The command name provided to this method must match the commands
defined in RFC 959 or related protocol standards. It is important
to distinguish between commands recognized by an FTP server and the
commands that client programs may use. For example, the standard
Windows FTP command line program provides commands such as GET and PUT
to download and upload files. However, those are not the actual
commands sent to a server. Instead, the corresponding server commands
issued by a client application would bet RETR (retrieve) and STOR
(store). Refer to File Transfer Protocol
Commands for a complete list of server commands.
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: csftsv12.lib
See Also
|