This function returns a transport-defined error code for the last mail error that occurred, as well as a Boolean value that indicates if the error is critical. It is an extension of TransportError.
Header file: | Msgstor2.h |
Platforms: | H/PC 3.0 |
Windows CE versions: | 2.10 and later |
int TransportErrorEx(HANDLE, hService, BOOL *pfCritical);
The return values for this function depend on the implementation of this function by the transport.
The transport service provider must implement this function in a DLL registered as a mail service. The Inbox application can then load this DLL and call this function.
An error is critical if further attempts to perform the operation that caused the error are likely to fail as well. For example, “Connection to the server lost,” “Incorrect server name provided,” and “Could not authenticate the user” are all critical errors. Noncritical errors include “Message not found,” “Message flags could not be set,” and “Folder has been deleted.”
If a transport service provider does not implement this function, the Inbox application assumes all errors are critical.