PopGetMessageCount Function  
 
INT WINAPI 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 7, Windows Vista or Windows XP.
Server: Requires Windows Server 2008 or Windows Server 2003.
Header: Include cstools7.h.
Library: Use cspopav7.lib.

See Also

PopDeleteMessage, PopGetHeaderValue, PopGetMessage, PopGetMessageCountEx, PopGetMessageHeaders, PopStoreMessage