The TransportDel function deletes a specific message located on the mail server.
BOOL TransportDelete(HANDLE hService, MailMsg *MsgPtr);
Header file: | Smtp.h |
Platforms: | H/PC |
Windows CE versions: | 1.0 and later |
Returns TRUE if successful or FALSE otherwise. To get extended error information, call TransportError or TransportErrorMsg. For example, if the message identifier cannot be found, the iErr member of the specified MailMsg structure is set to TRANS_ERR_INV_MSG_ID.
The TransportDel 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 TransportDel.
For the sample service, TransportDel removes the file specified in the MsgPtr structure.