Share via


IHTTPMailTransport::CommandGET method

[IHTTPMailTransport::CommandGET is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]

Sends the GET command to the HTTPMail server.

Syntax

HRESULT CommandGET(
  [in] LPCSTR pszPath,
  [in] LPCSTR *rgszAcceptTypes,
  [in] BOOL   fTranslate,
  [in] DWORD  dwContext
);

Parameters

pszPath [in]

Type: LPCSTR

Specifies an LPCSTR that contains a null-terminated string that is the complete URL to the entity to retrieve.

rgszAcceptTypes [in]

Type: LPCSTR*

Specifies a pointer to an LPCSTR that contains a null-terminated list of MIME accept types accepted by the client.

fTranslate [in]

Type: BOOL

Specifies a BOOL that indicates whether to send the HTTP request header Translate.

Value Meaning
FALSE
Do not send the Translate request header.
TRUE
Send the Translate request header and set it to FALSE.

dwContext [in]

Type: DWORD

Currently unused. Should be set to zero.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that pszPath is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.

Requirements

Minimum supported client
Windows XP [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Product
Outlook Express 6.0
Header
Imnxport.h
IDL
Imnxport.idl
DLL
Inetcomm.dll (version 6.0 or later)