TransportDisconnect

The TransportDisconnect function disconnects the current transmit and/or receive service.

Syntax

BOOL TransportConnect(HANDLE hService);

At a Glance

Header file: Smtp.h
Platforms: H/PC
Windows CE versions: 1.0 and later

Parameters

hService
Handle to a SERVICE structure.

Return Values

Returns TRUE if successful or FALSE otherwise. To get extended error information, call TransportError or TransportErrorMsg.

Remarks

The TransportDisconnect function must be implemented by the transport service provider in a DLL registered as a mail service. The Inbox application can load this DLL and call TransportDisconnect.

See Also

TransportConnect, TransportRelease