The MailPutFolder function is used to add, delete, or rename mail folders.
BOOL MailPutFolder (HANDLE hMail, BYTE bId, LPWSTR szName);
Header file: | Msgstore.h |
Platforms: | H/PC |
Versions: | 1.0 and later |
This function returns TRUE if successful; FALSE if it fails. To get extended error information, use MailError or MailErrorMsg.
If the bId parameter identifies a folder that already exists in the message store the MailPutFolder function renames the folder to the szName string. If the folder exists and szName is NULL the folder is deleted. If the bId identifier is not found in the database, a folder is created with the name pointed to by the szName parameter.
For more information, see Inbox.