Adding a Message Service
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
To add a new message service to a profile
Call IMsgServiceAdmin::CreateMsgService. CreateMsgService performs the following tasks:
Copies all of the relevant information for the message service that is in the MAPISVC.INF file, creating a profile section for every provider section.
Calls the message service's entry point function with the ulContext parameter set to MSG_SERVICE_CREATE.
Sets the message service's PR_SERVICE_UID (PidTagServiceUid) property.
To access the new message service
Call IMsgServiceAdmin::GetMsgServiceTable to retrieve the message service table.
Call the message service table's IMAPITable::Advise method to register for table notifications.
When MAPI sends a TABLE_ROW_ADDED notification, locate the entry identifier of the newly added message service in the SRow structure included in the TABLE_NOTIFICATION structure.