Platform SDK: SMTP Server Events |
[This is preliminary documentation and subject to change.]
The ISmtpInCommandContext::QueryCommand method retrieves the protocol command that triggered the event.
HRESULT QueryCommand( [out,size_is(*pdwSize)] LPSTR pszCommand, [in,out] DWORD *pdwSize );
This method returns the complete inbound command received. To retrieve only the keyword for the command, use the QueryCommandKeyword method.