| |
| INT GetMessageCount( |
| |
UINT *lpnLastMessage, |
|
| |
DWORD *lpdwMailboxSize |
|
| ); |
The GetMessageCount method returns the number of messages
available in the mailbox, the last valid message number in the
mailbox and the current size of the mailbox in bytes.
Parameters
- lpnLastMessage
- Address of a variable that receives the number of the last
valid message in the mailbox. If a NULL value is specified, this
argument is ignored.
- lpdwMailboxSize
- Address of a variable that receives the current size of the
mailbox. This value will decrease as messages are deleted. If a
NULL value is specified, this argument is ignored.
Return Value
If the method succeeds, it returns the number of messages that are
currently available. If no messages are available, either because the
mailbox is empty or all of the messages have been deleted, this
method will return zero. If the method fails, the return value is
POP_ERROR. 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: cspopv12.lib
See Also
|
|