Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Last modified: July 23, 2011

Applies to: Outlook

Returns a pointer that provides access to a provider administration object.

HRESULT AdminProviders(
  ULONG ulFlags,
  LPPROVIDERADMIN FAR * lppProviderAdmin


[in] A pointer to the MAPIUID structure that contains the unique identifier for the message service to be administered.


[in] Always NULL.


[out] A pointer to a pointer to a provider administration object.


The provider administration object was successfully returned.


The MAPIUID pointed to by lpUID does not exist.

The IMsgServiceAdmin::AdminProviders method provides access to a provider administration object. A provider administration is an object that supports the IProviderAdmin interface and enables clients to do the following:

  • Add service providers to a message service.

  • Delete service providers from a message service.

  • Open profile sections.

  • 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 structure for the message service to administer, retrieve the PR_SERVICE_UID (PidTagServiceUid) property column from the message service's row in the message service table. For more information, see the procedure outlined in the IMsgServiceAdmin::CreateMsgService method.

For MFCMAPI sample code, see the following table.






MFCMAPI uses the IMsgServiceAdmin::AdminProviders method to open a provider administration object for a service.

© 2015 Microsoft