Partager via


IProfAdmin::ChangeProfilePassword

Applies to: Office 2010 | Outlook 2010 | Visual Studio

Deprecated. Changes the password for a profile.

HRESULT ChangeProfilePassword(
  LPSTR lpszProfileName,
  LPSTR lpszOldPassword,
  LPSTR lpszNewPassword,
  ULONG ulFlags
);

Parameters

  • lpszProfileName
    [in] A pointer to the name of the profile associated with the password to be changed.

  • lpszOldPassword
    [in] A pointer to the current password.

  • lpszNewPassword
    [in] A pointer to the new password.

  • ulFlags
    [in] A bitmask of flags that controls the type of the passed-in strings. The following flag can be set:

    • MAPI_UNICODE
      The profile name and passwords are in Unicode format. If the MAPI_UNICODE flag is not set, these strings are in ANSI format.

Return Value

  • S_OK
    If this method is called, it will return S_OK. However, no action will be taken.

Remarks

Do not use this method. MAPI does not support passwords for profiles.

See Also

Reference

IProfAdmin : IUnknown