IMsgServiceAdmin::RenameMsgService

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.

Deprecated. Assigns a new name to a message service.

HRESULT RenameMsgService(
  LPMAPIUID lpUID,
  ULONG ulFlags,
  LPTSTR 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