Hi,
I am developing one tool , which will find out the count of messages
in mailbox.
I am using the code which is available in below mensioned URL
http://support.microsoft.com/kb/200160.
I want to access local server as well as remote server.
My Directory Hierarchy of Exchange Server is....
Organization-org
Site Name-site
Server Name-srv
sprintf(pszServerDN,"/o=org/ou=site/cn=Servers/cn=srv") ;
if (FAILED(hRes =
lpIManageStore-GetMailboxTable(pszServerDN,&lpMailBoxTable,0)) )
{
AfxMessageBox("Mailbox Table Not Available.\n");
return MAPI_E_NOT_FOUND;
}
this fun gets failed and error code is -2147024809.
I am unable to find out the reason.
So Please help me ...
Thanks in advance.
Bharati