Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[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 |
|---|---|
|
Indicates success. |
|
Indicates that pCallback is NULL. |
|
Indicates that an attempt to allocate memory failed. |
|
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 |
|
| IDL |
|
| DLL |
|