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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


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.

Returns an IMsgServiceAdmin pointer for making changes to message services.

HRESULT AdminServices(
  ULONG ulFlags,
  LPSERVICEADMIN FAR * lppServiceAdmin


[in] Reserved; must be zero.


[out] A pointer to a pointer to a message service administration object.


A pointer to a message service administration object was successfully returned.

The IMAPISession::AdminServices method creates a message service administration object, an object that supports the IMsgServiceAdmin interface and returns a pointer. By using this pointer, you can call IMsgServiceAdmin methods to change any of the message services in the session profile. Be aware that these changes do not take effect until the next session; the current session is unaffected.

For MFCMAPI sample code, see the following table.






MFCMAPI uses the IMAPISession::AdminServices method to access the profile to read the server name.

© 2015 Microsoft