Deleting 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 delete a message service from a profile

  1. Call IMAPISession::GetMsgServiceTable to access the message service table.

  2. Locate the row for the message service and pass its PR_SERVICE_UID (PidTagServiceUid) column in the lpuid parameter to IMsgServiceAdmin::DeleteMsgService.

DeleteMsgService calls the message service's entry point function with the ulContext parameter set to MSG_SERVICE_DELETE. Message services perform any clean up tasks at this time before they are removed from the profile.