inetcomm: Add an implementation of ISMTPTransport2::CommandHELO.

This commit is contained in:
Rob Shearman 2008-10-31 13:51:25 +01:00 committed by Alexandre Julliard
parent c445e4f68e
commit d9c4f5fc50
1 changed files with 20 additions and 2 deletions

View File

@ -771,8 +771,26 @@ static HRESULT WINAPI SMTPTransport_CommandEHLO(ISMTPTransport2 *iface)
static HRESULT WINAPI SMTPTransport_CommandHELO(ISMTPTransport2 *iface) static HRESULT WINAPI SMTPTransport_CommandHELO(ISMTPTransport2 *iface)
{ {
FIXME("()\n"); SMTPTransport *This = (SMTPTransport *)iface;
return E_NOTIMPL; const char szCommandFormat[] = "HELO %s\n";
const char szHostname[] = "localhost"; /* FIXME */
char *szCommand;
int len = sizeof(szCommandFormat) - 2 /* "%s" */ + sizeof(szHostname);
HRESULT hr;
TRACE("()\n");
szCommand = HeapAlloc(GetProcessHeap(), 0, len);
if (!szCommand)
return E_OUTOFMEMORY;
sprintf(szCommand, szCommandFormat, szHostname);
hr = InternetTransport_DoCommand(&This->InetTransport, szCommand,
SMTPTransport_CallbackReadResponseDoNothing);
HeapFree(GetProcessHeap(), 0, szCommand);
return hr;
} }
static HRESULT WINAPI SMTPTransport_CommandAUTH(ISMTPTransport2 *iface, static HRESULT WINAPI SMTPTransport_CommandAUTH(ISMTPTransport2 *iface,