Platform SDK: SMTP Server Events

ISmtpServerResponseContext::QueryCommandKeyword

[This is preliminary documentation and subject to change.]

Returns text and length of the current command keyword.

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

Parameters

pszKeyword
On successful return, a string pointer (char*) containing the current command keyword.
pdwSize
On successful return, the size of the string passed in pszKeyword.

Return Values

Remarks

The command keyword is the initial portion of the protocol command. For example, the command

EHLO exchange.microsoft.com\r\n

Contains the command keyword "EHLO".

The QueryCommandKeyword method would return the ASCII string "EHLO" with size = 4 (bytes).