An integer value which specifies the number of characters copied
into the buffer, not including the terminating null character. If the
method fails, the return value will be zero and the
GetLastError method can be used to retrieve the last error
code. If the last error code has a value of zero then no command has been issued by the client.
The GetCommandLine method is used to obtain the command
that was issued by the client, and is commonly used inside
the OnCommand and OnResult event handlers to pre-process
and post-process client commands, respectively. When the method
returns, the string buffer provided by the caller will contain the
complete command, including all command parameters. Any extraneous
whitespace will be removed, however quoted parameters will be retained
as-is.
To obtain a specific parameter to a command, use the
GetCommandParam method. The GetCommandParamCount
method will return the number of command parameters that were
provided by the client. If the command sent by the client is used to
perform an action on a file or directory, the GetCommandFile
method should be called to obtain the full path to the specified
file rather than using the value of the command parameter.