Platform SDK: CDO 1.2.1

Configuring the RenderingApplication Object

After creating the RenderingApplication object, you need to configure it by setting its properties. Properties are set using information from these sources:

You can configure the RenderingApplication object by calling the LoadConfiguration method on the RenderingApplication object. Calling LoadConfiguration retrieves information about the Microsoft Exchange Server from the registry and writes it to a table in the RenderingApplication object. In this call, set the source parameter to 1 (AMHTML_Config_Registry) to load information from the key associated with the service.

For Microsoft Outlook Web Access, this key is:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeWeb\Parameters
 

This registry information was originally entered by the administrator who set up Microsoft® Outlook™ Web Access during the installation of Microsoft Exchange Server.

In a separate call, set the source parameter to 2 (AMHTML_Config_DS) to load information from the Microsoft Exchange directory service, such as whether HTTP is enabled and what public folders have been published. This call can be found in the Session_OnStart function in global.asa:

objRenderApp.LoadConfiguration 2, ""