View Single Post
  #1  
Old December 18th 06, 12:17 PM posted to microsoft.public.outlook.program_forms
bharati
external usenet poster
 
Posts: 1
Default What should be the value of pszServerDN in GetMailboxTable fun???

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

Ads