MailGetFolderId

The MailGetFolderId function retrieves the identification number of a mail folder from the message store.

Syntax

BOOL MailGetFolderId (HANDLE hMail, BYTE* pbId, LPWSTR szName);

At a Glance

Header file: Msgstore.h
Platforms: H/PC
Versions: 1.0 and later

Parameters

hMail
Handle to the mail context. This handle is created by the MailOpen function.
pbId
If the folder name pointed to by szName exists in the message store, the value of this parameter is set to the identification number associated with the name.
szName
Pointer to the string containing the name of the mail folder being searched.

Return Values

This function returns TRUE if successful; FALSE if it fails. To get extended error information, use MailError or MailErrorMsg.

For more information, see Inbox.

See Also

MailGetFolderName