IMsgServiceAdmin::RenameMsgService

Applies to: Outlook 2013 | Outlook 2016

Deprecated. Assigns a new name to a message service.

HRESULT RenameMsgService(
  LPMAPIUID lpUID,
  ULONG ulFlags,
  LPSTR lpszDisplayName
);

Parameters

lpUID

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

ulFlags

[in] Reserved; must be zero.

lpszDisplayName

[in] A pointer to the new name for the message service.

Return value

MAPI_E_NO_SUPPORT

MAPI does not support renaming this message service. RenameMsgService always returns this value.

Remarks

To assign a new name to a message service, clients should use the PR_SERVICE_NAME (PidTagServiceName) property of the message service. The names of service providers in a message service are stored in their PR_DISPLAY_NAME (PidTagDisplayName) properties.

See also

MAPIUID

IMsgServiceAdmin : IUnknown