ISMTPTransport::InitNew method

[ISMTPTransport::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 Internet transport.

Syntax

HRESULT InitNew(
  [in] LPSTR         pszLogFilePath,
  [in] ISMTPCallback *pCallback
);

Parameters

pszLogFilePath [in]

Type: LPSTR

Specifies an LPSTR 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: ISMTPCallback*

Specifies a pointer to the transport callback interface.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
S_OK
Indicates success.
E_INVALIDARG
Indicates that pCallback is NULL.
E_OUTOFMEMORY
Indicates that an attempt to allocate memory failed.
IXP_E_ALREADY_CONNECTED
Indicates that the transport is currently connected.

Remarks

This method must be called to start the transport before any other methods can be called.

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)