The IMsgServiceAdmin::AdminProviders method returns a pointer providing access to a provider administration object.
See IMsgServiceAdmin : IUnknown.
HRESULT AdminProviders(
LPMAPIUID lpUID,
ULONG ulFlags,
LPPROVIDERADMIN FAR * lppProviderAdmin
);
The IMsgServiceAdmin::AdminProviders method provides access to a provider administration object. A provider administration object — an object that supports the IProviderAdmin interface — allows clients to add service providers to a message service, delete service providers from a message service, open profile sections, and access the message service provider table.
The types of changes that can actually be made to a message service while the profile is in use depend on the message service. However, most message services do not support changes such as adding and deleting providers while the profile is in use.
To retrieve the MAPIUID for the message service to administer, retrieve the PR_SERVICE_UID column from the message service's row in the message service table. See the procedure outlined in IMsgServiceAdmin::CreateMsgService for more information.
IProviderAdmin : IUnknown, MAPIUID