The Exchange Development Kit (EDK)
HrMailboxLogon function takes a pair of parameters for both the server name and the mailbox name. The documentation on the
HrMailboxLogon function is misleading.
According to the documentation on the
HrMailboxLogon function, both the message store (lpszMsgStoreDN) and the mailbox (lpszMailboxDN) parameters are distinguished names, in the form of the following:
/O=Organization/OU=Site/CN=Servers/CN=ServerName/CN=NULL
/O=Organization/OU=Site/CN=Container/CN=MailboxName
However, the last leaf of the message store name parameter cannot be a NULL value. If the
HrMailboxLogon function is executed as the documentation suggests, it fails with the following error message:
0x80004005: Unspecified Error