IHTTPMailTransport::InitNew method
[IHTTPMailTransport::InitNew is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Initializes the HTTPMail transport.
HRESULT InitNew(
[in] LPCSTR pszUserAgent,
[in] LPCSTR pszLogFilePath,
[in] IHTTPMailCallback *pCallback
);
-
pszUserAgent [in]
-
Type: LPCSTR
Specifies an LPCSTR that contains the user agent string sent in HTTP queries.
-
pszLogFilePath [in]
-
Type: LPCSTR
Specifies an LPCSTR that contains the full path and name of the file in which to log the protocol commands. NULL is a valid value (no logging).
-
pCallback [in]
-
Type: IHTTPMailCallback*
Specifies a pointer to the transport callback interface.
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that pszUserAgent or pCallback is NULL. |
|
Indicates that an attempt to allocate memory failed. |
|
Indicates that the transport is currently connected. |
|
Indicates that the TCP/IP socket connection could not be initialized. |
This method must be called to start the transport before any other methods can be called.
Minimum supported client |
Windows XP [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Product |
Outlook Express 6.0 |
Header |
|
IDL |
|
DLL |
|