TransportRelease

The TransportRelease function frees the memory heap and all resources allocated for this transport service by TransportInit.

Syntax

BOOL TransportRelease(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.

Remarks

The TransportRelease 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 this function.

TransportRelease is called before the service DLL is unloaded. For the sample transport service, TransportRelease frees the heap allocated by TransportInit and also calls TransportDisconnect.

See Also

TransportInit, TransportDisconnect