IIMAPTransport2::SetWindow method

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

Creates a new window used for asynchronous Windows Sockets (Winsock) processing.

Syntax

HRESULT SetWindow();

Parameters

This method has no parameters.

Return value

Type: HRESULT

Returns one of the following values.

Return code Description
NOERROR
Indicates success.
E_FAIL
Indicates that a new window could not be created.
IXP_E_CONN
Indicates that the socket could not be connected.
E_UNEXPECTED
Indicates that an unknown error has occurred.

Remarks

You must call the IIMAPTransport2::ResetWindow method before you call this method to avoid window handle leaks.

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)