The TransportError function returns a transport defined error code for the last mail error that occurred.
int TransportError(HANDLE hService);
Header file: | Smtp.h |
Platforms: | H/PC |
Windows CE versions: | 1.0 and later |
The sample TransportError routine returns an integer error number for the last error that occurred. If no error has occurred, TransportError must return TRANS_ERR_NONE (with associated error string "No error", returned by TransportErrorMsg). Note that this is required for every transport service's implementation of TransportError.
Other custom error values can be defined by the transport service. For example, the sample transport service defines the following values:
The TransportError function must be implemented by the transport service provider in a registered DLL. The Inbox application can load this DLL and call this function.