Platform SDK: SMTP Server Events

ISmtpInCommandContext::QueryCommand

[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
);

Parameters

pszCommand
On return, a string containing the command text.
pdwSize
On return, the size of the returned string in bytes.

Return Values

Remarks

This method returns the complete inbound command received. To retrieve only the keyword for the command, use the QueryCommandKeyword method.