ISMTPTransport2::SetWindow method
[ISMTPTransport2::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.
HRESULT SetWindow();
This method has no parameters.
Type: HRESULT
Returns one of the following values.
Return code | Description |
---|---|
|
Indicates success. |
|
Indicates that a new window could not be created. |
|
Indicates that the socket could not be connected. |
|
Indicates that an unknown error has occurred. |
You must call the ISMTPTransport2::ResetWindow method before you call this method to avoid window handle leaks.
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 |
|