Logging On to Mailboxes
You can write programs that log on to and manage Microsoft Exchange Server mailboxes and public folders in two ways:
-
Use the HrMailboxLogon mailbox logon function. This wrapper function is located in \BKOFFICE\SAMPLES\EXCHANGE\LIBSRC\MBLOGON\MBLOGON.C. The MBLSAMPL sample application uses this function and is located in BKOFFICE\SAMPLES\EXCHANGE\MBLSAMPL\MBLSAMPL.C. HrMailboxLogon wraps the methods of the IExchangeManageStore interface.
-
Use the IExchangeManageStore interface itself to manipulate mailboxes directly. The IExchangeManageStore interface is used by the wrapper functions in MBLOGON.C.
Using the Microsoft Exchange Server mailbox wrapper function to perform basic logon operations for mailboxes is recommended. They implement low-level details of managing mailboxes and can save you time.