PopGetMessageCount
INT PopGetMessageCount(
HCLIENT hClient  
);

The PopGetMessageCount function returns the number of mail messages that are currently available in the mailbox.

Parameters

hClient
Handle to the client session.

Return Value

If the function 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 function will return zero. If the function fails, the return value is POP_ERROR. To get extended error information, call PopGetLastError.

Requirements

Client: Requires Windows Vista, Windows XP or Windows 2000 Professional.
Server: Requires Windows Server 2008, Windows Server 2003 or Windows 2000 Server.
Header: Include cstools6.h.
Library: Use cspopav6.lib.

See Also

PopDeleteMessage, PopGetHeaderValue, PopGetMessage, PopGetMessageCountEx, PopGetMessageHeaders, PopStoreMessage


Copyright © 2008 Catalyst Development Corporation. All rights reserved.