The MailGetFolderName function retrieves the name of a mail folder from the message store.
BOOL MailGetFolderName (HANDLE hMail, int* piId, int* piLen LPWSTR szName);
Header file: | Msgstore.h |
Platforms: | H/PC |
Versions: | 1.0 and later |
After calling MailGetFolderName, if the folder specified by szName cannot be found, the value pointed to by piId is the identifier of the next folder found. If no folder can be found, then piId points to a negative value.
After calling MailGetFolderName, the value pointed to by piLen is the actual number of characters needed for the string being passed back to szName plus a NULL terminator character.
This function returns TRUE if successful; FALSE if it fails. To get extended error information, use MailError or MailErrorMsg.
For more information, see Inbox.