This function, an extension of MailGetFolderName, retrieves the name of a folder in the messages 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 MailGetFolderNameEx (HANDLE hMail, FID* pfId, int* piLen
LPWSTR szName);
After calling the function, the value pointed to by piLen is the actual number of characters needed for the string being passed back to szName plus a terminating null character.
TRUE indicates success. FALSE indicates failure. To get extended error information, call the function MailError or MailErrorMsg.
If the folder specified by szName does not exist, pfId returns the identifier of the next folder found. If no folders exist, pfId returns MAIL_FOLDER_NONE.