This function, an extension of MailPut, creates a new mail entry in the message store and operates in a multiple hierarchy folder environment.
Header file: | Msgstor2.h |
Platforms: | H/PC 3.0 |
Windows CE versions: | 2.10 and later |
BOOL MailPutEx (HANDLE hMail, MailMsg*pmm, FID fid);
TRUE indicates success. FALSE indicates failure. To get extended error information, call the function MailError or MailErrorMsg.
If this function succeeds, this function sets the oid member of MailMsg with a unique identification number for this mail entry. Other mail functions can use the oid to reference this entry.
This function adds new entries to the message store. To change existing entries, use the MailUpdateEx function.
This function only accepts a MailMsg structure if the pwcHeader and hHeap members are properly initialized with a call to the function MailSetField. The hHeap member must be a handle to a heap you created.