TransportPut

This function adds a message to a folder on a server.

At a Glance

Header file: Msgstor2.h
Platforms: H/PC 3.0
Windows CE versions: 2.10 and later

Syntax

BOOL TransportPut(HANDLE hService, LPWSTR szFolderID,
MailMsg
*MsgPtr);

Parameters

hService
[in] Handle to a private SERVICE structure.
szFolderID
[in] Null-terminated string that contains the identifier of the folder to add the message to.
MsgPtr
[in] Pointer to a MailMsg structure. The szSvcID member of MailMsg specifies the service identifier of the message to be placed on the server.

Return Values

TRUE indicates success. FALSE indicates failure. To get extended error information, call the function TransportError or TransportErrorMsg.

Remarks

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.

The transport DLL is responsible for initializing the szSvcId and szSvcNam members of MailMsg. The transport DLL is also responsible for copying attachments and non-Interpersonal Message (non-IPM) properties. These properties are listed in the oid member of MailMsg.