Platform SDK: Exchange Server

HrGetMailboxDN

The HrGetMailboxDN function retrieves the distinguished names (DNs) for a server and mailbox.

Quick Info

Header file: EDKUTILS.H
Library: EDKUTILS.LIB

HRESULT HrGetMailboxDN(
  LPSTR pszServer,       
  LPSTR pszMailbox,      
  LPSTR * ppszServerDN,  
  LPSTR * ppszMailboxDN  
);
 

Parameters

pszServer
Input parameter. Points to the name of the server.
pszMailbox
Input parameter. Points to the name of the mailbox.
ppszServerDN
Output parameter. Points to a pointer to the distinguished name (DN) of the server.
ppszMailboxDN
Output parameter. Points to a pointer to the DN of the mailbox.

Return Values

See Return Values.

Remarks

The completed output strings appears as follows:

/O=Organization/OU=Site/CN=Servers/CN=ServerName/CN=NULL
/O=Organization/OU=Site/CN=Recipients/CN=MailboxName

For more information on distinguished names (DNs), see Viewing the Contents of Mailboxes with MBLSAMPL.

See Also

HrGetServiceSiteDN