The GetMessageFlags method returns the message flags for
the specified message.
Parameters
nMessageId
Number of message to obtain the message flags for. This value
must be greater than zero. The first message in the mailbox is
message number one.
lpdwMessageFlags
Pointer to an unsigned integer that will contain the
message flags for the specified message. The value may be zero, or
one or more of the following values:
Value
Description
IMAP_FLAG_ANSWERED
The message has been answered.
IMAP_FLAG_DELETED
The message has been marked for deletion.
IMAP_FLAG_DRAFT
The message has not been completed and is marked as a draft
copy.
IMAP_FLAG_URGENT
The message has been flagged for urgent or special
attention.
IMAP_FLAG_RECENT
The message has been added to the mailbox recently.
IMAP_FLAG_SEEN
The message has been read.
Return Value
If the method succeeds, the return value is non-zero and the
lpdwMessageFlags parameter contains the status flags for the
specified message. If the method fails, the return value is zero. To
get extended error information, call GetLastError.
Requirements
Minimum Desktop Platform: Windows 7 Service Pack 1 Minimum Server Platform: Windows Server 2008 R2 Service Pack 1 Header File: cstools12.h Import Library: csmapv12.lib