Platform SDK: SMTP Server Events

ISmtpOutCommandContext::QueryCommandKeywordSize

[This is preliminary documentation and subject to change.]

The ISmtpOutCommandContext::QueryCommandKeywordSize method returns the size, in bytes (chars), of the current command keyword.

HRESULT QueryCommandKeywordSize(
  [out]  DWORD  *pdwSize
);

Parameters

pdwSize
On successful return. the size, in bytes, of the current command keyword.

Return Values

Remarks

An SMTP command is made up of a keyword and arguments. For example, the SMTP command

EHLO exchange.microsoft.com\r\n

has the "EHLO" command keyword. The keyword size in this case would be 4, meaning 4 bytes in size.