The MailHeaderLen function computes the number of characters in a header string.
DWORD MailHeaderLen (MailMsg* pmm);
Header file: | Msgstore.h |
Platforms: | H/PC |
Versions: | 1.0 and later |
This function returns the length, in characters, of the entire header string.
The MailHeaderLen function searches the header (that is, the pwcHeaders field) of the MailMsg structure in memory. Before calling MailHeaderLen, the message must be retrieved from the message store by calling MailGet, MailFirst, or MailNext.
The pwcHeaders member of the MailMsg structure points to the message's header string. The header consists of entries made up of two fields: a name, and an associated value. The name fields are separated from the value fields by a NULL character, and the entries are separated from each other by a NULL character. The header string is terminated with two consecutive NULL characters.
For more information, see Inbox.