C++ GetFolderCount, GetFolderProp sample.
#include "AIRMail SDK.h"
void ListFolders ( )
{
DWORD fcount = GetFolderCount ( AIRMail SDKHandle );
if ( fcount == 0 )
{
cout << "No folders or handle is invalid" << endl;
return;
}
for ( DWORD i = 0 ; i < fcount; i++ )
{
FOLDERPROP folder;
GetFolderProp ( AIRMail SDKHandle,i,&folder ) ;
cout << folder. Name ;
cout << " - mail count: " << folder. MailCount << endl;
}
}