| INT GetUnseenMessages( |
| |
UINT *lpnMessageIds, |
|
| |
INT nMaxMessages |
|
| ); |
The GetUnseenMessages method returns the message
identifiers for those messages that have not been read.
Parameters
- lpnMessageIds
- A pointer to an array of unsigned integers that will contain
the message identifiers of those messages that have not been read.
This parameter may be NULL, in which case the method will return
the number of unseen messages but will not return their
identifiers.
- nMaxMessages
- The maximum number of message identifiers that may be stored in
the lpnMessageIds array. If the lpnMessageIds
parameter is NULL, this value should be zero.
Return Value
If the method succeeds, the return value is the number of unseen
messages in the current mailbox. If the method fails, the return
value is IMAP_ERROR. To get extended error information, call
GetLastError.
Remarks
The message identifiers returned by this method are only valid
until the mailbox is expunged or another mailbox is selected. Once a
message has been read using GetMessage or StoreMessage,
it is no longer considered to be an unseen message.
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
See Also
|