The MailGetField function sets a pointer to a specified field in the header string.
LPWSTR MailGetField (MailMsg* pmm, LPWSTR szName, BOOL fGetName);
Header file: | Msgstore.h |
Platforms: | H/PC |
Versions: | 1.0 and later |
This function returns a pointer to the requested field, as specified by the fGetName parameter.
The MailGetField function searches the header (that is, the pwcHeaders field) of the MailMsg structure in memory. Before calling MailGetField, 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.