This function, an extension of MailPutFolder, adds, deletes, or renames a folder, 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 MailPutFolder (HANDLE hMail, FID fidParent, FID fidFolder,
LPWSTR szName);
TRUE indicates success. FALSE indicates failure. To get extended error information, call the function MailError or MailErrorMsg.
If the fidFolder parameter identifies a folder that already exists in the message store, this function renames the folder based on the name specified in szName. If the folder exists and szName is NULL, the folder is deleted. If the identifier in fidFolder is not found in the database, this function creates a folder based on the name specified by szName.
To find an unused folder identifier for fidFolderThe default mail folder hierarchy for the H/PC 3.0 is known as ActiveSync. Because all folders within the ActiveSync hierarchy have folder identifiers between 0 and 255, ActiveSync is backward-compatible with earlier versions of Windows CE. All folders outside the ActiveSync hierarchy have folder identifiers of 256 or greater.