Share via


IMsgServiceAdmin::RenameMsgService

Applies to: Office 2010 | Outlook 2010 | Visual Studio

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

Reference

MAPIUID

IMsgServiceAdmin : IUnknown