Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

IMAPISession::AdminServices

Returns an IMsgServiceAdmin pointer for making changes to message services.

HRESULT AdminServices(
  ULONG ulFlags,
  LPSERVICEADMIN FAR * lppServiceAdmin
);

Parameters

ulFlags

[in] Reserved; must be zero.

lppServiceAdmin

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

S_OK

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.

FileFunctionComment

MAPIStoreFunctions.cpp

GetServerName

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.