Platform SDK: SMTP Server Events

ISmtpInCommandContext::QueryCommandKeyword

[This is preliminary documentation and subject to change.]

The ISmtpInCommandContext::QueryCommandKeyword method returns the current command keyword string.

HRESULT QueryCommandKeyword(
  [out,size_is(*pdwSize)] LPSTR   pszKeyword,
  [in,out]                DWORD   *pdwSize
);

Parameters

pszKeyword
On return, the command keyword.
pdwSize
On return, the size of the keyword string.

Remarks

The protocol command is made up of the keyword and the argument for the command. For example, the protocol command "EHLO domain.tld" has the keyword "EHLO."