| INT Command( |
| |
LPCTSTR lpszCommand, |
|
| |
LPCTSTR lpszParameter |
|
| ); |
The Command method sends a command to the server.
This method is typically used for site-specific commands not directly
supported by the API.
Parameters
- lpszCommand
- The command which will be executed by the server.
- lpszParameter
- An optional command parameter. If the command requires more
than one parameter, then they should be combined into a single
string, with a space separating each parameter. If the command does
not accept any parameters, this value may be NULL.
Return Value
If the method succeeds, it returns an IMAP result code. If the
command was successful, it returns IMAP_RESULT_OK. A return value of
IMAP_RESULT_CONTINUE indicates the command was accepted and the caller
should proceed with the next command. If an error occurs, the
method returns IMAP_ERROR. To get extended error information, call
GetLastError.
Remarks
A list of valid commands can be found in the technical
specification for the protocol. The current version of the protocol
which is supported by this library is version 4rev1 as defined in RFC
3501.
Use the GetResultCode method to determine the result of the
command that was sent to the server.
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: csmapv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|