Platform SDK: SMTP Server Events

ISmtpOutCommandContext::QueryCommandSize

[This is preliminary documentation and subject to change.]

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

HRESULT QueryCommandSize(
  [out]  DWORD  *pdwSize
);

Parameters

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

Return Values

Remarks

The current SMTP command is stored as an ASCII string. The QueryCommandSize returns the size (in chars) of the current command string.